Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
PIP-2675: Better WorkerPool request hashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baliedge committed Sep 28, 2023
1 parent 595eb67 commit d2e07af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (p *WorkerPool) dispatch(worker *Worker) {
// GetRateLimit sends a GetRateLimit request to worker pool.
func (p *WorkerPool) GetRateLimit(ctx context.Context, rlRequest *RateLimitReq) (retval *RateLimitResp, reterr error) {
// Delegate request to assigned channel based on request key.
worker := p.getWorker(rlRequest.UniqueKey)
worker := p.getWorker(rlRequest.HashKey())
handlerRequest := &request{
ctx: ctx,
resp: make(chan *response, 1),
Expand Down

0 comments on commit d2e07af

Please sign in to comment.