1
0
Fork 0
forked from forgejo/forgejo

Queue & Setting: Add worker pool implementation

This commit is contained in:
Andrew Thornton 2019-11-20 21:31:39 +00:00
parent 85042634fc
commit 9fb051654a
No known key found for this signature in database
GPG key ID: 3CDE74631F13A748
10 changed files with 92 additions and 25 deletions

View file

@ -35,6 +35,7 @@ func TestPersistableChannelQueue(t *testing.T) {
DataDir: tmpDir,
BatchLength: 2,
QueueLength: 20,
Workers: 1,
}, &testData{})
assert.NoError(t, err)
@ -83,6 +84,7 @@ func TestPersistableChannelQueue(t *testing.T) {
DataDir: tmpDir,
BatchLength: 2,
QueueLength: 20,
Workers: 1,
}, &testData{})
assert.NoError(t, err)