mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-18 00:21:12 +00:00
Close watch channel on exit
This commit is contained in:
parent
09d79b238b
commit
4e31a4b24b
@ -81,6 +81,7 @@ func (s *SummaryCache) OnInboundRelationshipChange(ctx context.Context, schema *
|
|||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
s.Lock()
|
s.Lock()
|
||||||
defer s.Unlock()
|
defer s.Unlock()
|
||||||
|
close(cb)
|
||||||
delete(s.cbs, id)
|
delete(s.cbs, id)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user