Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shaazmik committed Dec 2, 2024
1 parent 4b29e59 commit 393c675
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions driver/generic/sendwithcallbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func (d *Driver) handleCallbacks(

go func() {
defer close(c)

for {
select {
case <-ctx.Done():
Expand All @@ -182,6 +183,7 @@ func (d *Driver) handleCallbacks(
c <- &callbackResult{
err: err,
}

return
}

Expand All @@ -197,6 +199,7 @@ func (d *Driver) handleCallbacks(
fb: fb,
err: nil,
}

return
}
}
Expand All @@ -209,6 +212,7 @@ func (d *Driver) handleCallbacks(
if r.err != nil {
return nil, r.err
}

return d.executeCallback(r.i, r.callbacks, r.b, r.fb, timeout)
case <-ctx.Done():
return nil, fmt.Errorf("%w: timeout handling callbacks", util.ErrTimeoutError)
Expand Down

0 comments on commit 393c675

Please sign in to comment.