mirror of
https://github.com/rancher/steve.git
synced 2025-09-01 15:37:31 +00:00
Close watch channel on exit
This commit is contained in:
@@ -81,6 +81,7 @@ func (s *SummaryCache) OnInboundRelationshipChange(ctx context.Context, schema *
|
||||
<-ctx.Done()
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
close(cb)
|
||||
delete(s.cbs, id)
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user