Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louiseschmidtgen committed Dec 11, 2024
1 parent 8eff9d8 commit 02355c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/kine/server/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ func (w *watcher) Start(ctx context.Context, r *etcdserverpb.WatchCreateRequest)

// Wait for events or progress notifications
select {
case events, ok := <-wr.Events:
if !ok {
// Channel was closed, break out of the loop
outer = false
break
}
case events = <-wr.Events:
// We received events; batch any additional queued events
reads++
inner := true
Expand Down

0 comments on commit 02355c1

Please sign in to comment.