mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-25 23:21:54 +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
|
||||
// the first 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
|
||||
// regardless of which constructor was used to add them to the node.
|
||||
closers := []io.Closer{
|
||||
|
Reference in New Issue
Block a user