Skip to content

Commit

Permalink
fix tight loop (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Lombardi <[email protected]>
  • Loading branch information
luke-lombardi and Luke Lombardi authored Apr 16, 2024
1 parent 6592e37 commit 431eaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/abstractions/endpoint/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ func (rb *RequestBuffer) processRequests() {
return
default:
req, ok := rb.buffer.Pop()

if !ok {
time.Sleep(time.Millisecond * 100)
continue
}

Expand Down

0 comments on commit 431eaf2

Please sign in to comment.