2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-26 11:16:12 +08:00

Use int as priority value type.

Do not use unsigned int for merely non-negative quantities as it
complicates simple arithmetic.
This commit is contained in:
Ken Hibino
2020-02-12 22:23:25 -08:00
parent d757b6296f
commit d22253ebf9
15 changed files with 84 additions and 70 deletions

View File

@@ -120,7 +120,7 @@ func BenchmarkEndToEndMultipleQueues(b *testing.B) {
client := NewClient(redis)
bg := NewBackground(redis, &Config{
Concurrency: 10,
Queues: map[string]uint{
Queues: map[string]int{
"high": 6,
"default": 3,
"low": 1,