Skip to content

Commit

Permalink
Merge pull request #661 from twmb/kfake_panic
Browse files Browse the repository at this point in the history
kfake: do not return early when running control functions if the cluster is closed
  • Loading branch information
twmb authored Jan 14, 2024
2 parents c69fa0b + d9c8468 commit ee1f011
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/kfake/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ outer:
inner:
for {
select {
case <-c.die:
return
case admin := <-c.adminCh:
admin()
continue inner
Expand Down Expand Up @@ -604,8 +602,6 @@ func (c *Cluster) tryControlKey(key int16, creq *clientReq) (kmsg.Response, erro
res := c.runControl(cctx, creq)
for {
select {
case <-c.die:
return nil, nil, false
case admin := <-c.adminCh:
admin()
continue
Expand Down

0 comments on commit ee1f011

Please sign in to comment.