Close watch channel on exit

This commit is contained in:
Darren Shepherd 2020-09-25 18:03:59 -07:00
parent 09d79b238b
commit 4e31a4b24b

View File

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