We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5525452 commit 315d928Copy full SHA for 315d928
modules/queue/queue_channel_test.go
@@ -25,12 +25,13 @@ func TestChannelQueue(t *testing.T) {
25
26
queue, err := NewChannelQueue(handle,
27
ChannelQueueConfiguration{
28
- QueueLength: 20,
29
- Workers: 1,
+ QueueLength: 0,
30
MaxWorkers: 10,
31
BlockTimeout: 1 * time.Second,
32
BoostTimeout: 5 * time.Minute,
33
BoostWorkers: 5,
+ Workers: 0,
34
+ Name: "TestChannelQueue",
35
}, &testData{})
36
assert.NoError(t, err)
37
modules/queue/workerpool.go
@@ -96,8 +96,8 @@ func (p *WorkerPool) pushBoost(data Data) {
96
p.blockTimeout /= 2
97
p.lock.Unlock()
98
}()
99
- p.addWorkers(ctx, boost)
100
+ p.addWorkers(ctx, boost)
101
p.dataChan <- data
102
}
103
0 commit comments