mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 06:36:46 +00:00

* [NOD-487] Implement a mechanism to gracefully shut down after a panic. * [NOD-487] Fixed bad log. * [NOD-487] Removed unused import. * [NOD-487] Convert panic handlers from anonymous functions to methods.
16 lines
351 B
Go
16 lines
351 B
Go
// Copyright (c) 2013-2016 The btcsuite developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package server
|
|
|
|
import (
|
|
"github.com/daglabs/btcd/logger"
|
|
"github.com/daglabs/btcd/util/panics"
|
|
)
|
|
|
|
var (
|
|
log, _ = logger.Get(logger.SubsystemTags.SRVR)
|
|
spawn = panics.GoroutineWrapperFunc(log)
|
|
)
|