mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: remove s.ExchangeSession check
This commit is contained in:
parent
6947c8b104
commit
5212365d2f
|
@ -1563,10 +1563,6 @@ func (s *Strategy) newPrometheusLabels() prometheus.Labels {
|
|||
}
|
||||
|
||||
func (s *Strategy) CleanUp(ctx context.Context) error {
|
||||
if s.ExchangeSession == nil {
|
||||
return errors.New("ExchangeSession is nil, can not clean up")
|
||||
}
|
||||
|
||||
return s.cancelAll(ctx)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user