mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 23:53:19 +08:00
feat(core) add shutdown message
This commit is contained in:
@ -277,6 +277,7 @@ func (n *IpfsNode) startOnlineServicesWithHost(ctx context.Context, maybeRouter
|
|||||||
// teardown closes owned children. If any errors occur, this function returns
|
// teardown closes owned children. If any errors occur, this function returns
|
||||||
// the first error.
|
// the first error.
|
||||||
func (n *IpfsNode) teardown() error {
|
func (n *IpfsNode) teardown() error {
|
||||||
|
log.Debug("core is shutting down...")
|
||||||
// owned objects are closed in this teardown to ensure that they're closed
|
// owned objects are closed in this teardown to ensure that they're closed
|
||||||
// regardless of which constructor was used to add them to the node.
|
// regardless of which constructor was used to add them to the node.
|
||||||
closers := []io.Closer{
|
closers := []io.Closer{
|
||||||
|
Reference in New Issue
Block a user