mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
call cancelTrading defer
This commit is contained in:
parent
9db1c78171
commit
f12e38b70e
|
@ -73,6 +73,7 @@ func compileRunFile(filepath string, config *bbgo.Config) error {
|
|||
|
||||
func runConfig(basectx context.Context, userConfig *bbgo.Config) error {
|
||||
ctx, cancelTrading := context.WithCancel(basectx)
|
||||
defer cancelTrading()
|
||||
|
||||
environ := bbgo.NewEnvironment()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user