multi: add shutdown logs in subservers

This commit adds a simple shutdown to every subserver to assist
debugging.
This commit is contained in:
yyforyongyu
2021-09-02 20:26:00 +08:00
parent 03bce2129b
commit 3204e2d74b
15 changed files with 24 additions and 6 deletions

View File

@@ -161,6 +161,8 @@ func (b *BtcdNotifier) Stop() error {
return nil
}
chainntnfs.Log.Info("btcd notifier shutting down")
// Shutdown the rpc client, this gracefully disconnects from btcd, and
// cleans up all related resources.
b.chainConn.Shutdown()