grid2: remove s.ExchangeSession check

This commit is contained in:
c9s 2023-03-02 17:40:44 +08:00
parent 6947c8b104
commit 5212365d2f
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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)
}