Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCFR-144 enforce repeatable read #14978

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add jitter to poller
  • Loading branch information
dhaidashenko committed Oct 28, 2024
commit e684dc817dc9b6e8cbcb8b7c07725b1871b7b3a3
2 changes: 1 addition & 1 deletion common/client/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (p *Poller[T]) Err() <-chan error {
}

func (p *Poller[T]) pollingLoop(ctx context.Context) {
ticker := time.NewTicker(p.pollingInterval)
ticker := services.NewTicker(p.pollingInterval) // reduce possibility of sending two exactly the same request at once
defer ticker.Stop()

for {
Expand Down