Skip to content

Commit

Permalink
avoid write to close channel
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
  • Loading branch information
jakubdyszkiewicz committed Sep 26, 2024
1 parent 5a946e8 commit ef45646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/sotw/v3/xds.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func (s *server) process(str stream.Stream, reqCh chan *discovery.DiscoveryReque
// s.ctx.Done()
sw.watches.recompute(s.ctx, reqCh)

if s.opts.Ordered {
return s.processADS(&sw, reqCh, defaultTypeURL)
}

for {
// The list of select cases looks like this:
// 0: <- ctx.Done
Expand Down

0 comments on commit ef45646

Please sign in to comment.