1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Add MaxWorker settings to queues

This commit is contained in:
Andrew Thornton
2019-12-30 15:54:19 +00:00
parent a492b3071c
commit b1c9fa7f1a
15 changed files with 312 additions and 73 deletions

View File

@ -36,6 +36,7 @@ func TestPersistableChannelQueue(t *testing.T) {
BatchLength: 2,
QueueLength: 20,
Workers: 1,
MaxWorkers: 10,
}, &testData{})
assert.NoError(t, err)
@ -89,6 +90,7 @@ func TestPersistableChannelQueue(t *testing.T) {
BatchLength: 2,
QueueLength: 20,
Workers: 1,
MaxWorkers: 10,
}, &testData{})
assert.NoError(t, err)