mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bbgo: fix graceful shutdown call
This commit is contained in:
parent
829704eda3
commit
3c69556424
|
@ -30,5 +30,6 @@ func OnShutdown(ctx context.Context, f ShutdownHandler) {
|
|||
|
||||
func Shutdown(shutdownCtx context.Context) {
|
||||
logrus.Infof("shutting down...")
|
||||
defaultIsolation.gracefulShutdown.Shutdown(shutdownCtx)
|
||||
isolatedContext := GetIsolationFromContext(shutdownCtx)
|
||||
isolatedContext.gracefulShutdown.Shutdown(shutdownCtx)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user