0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-10-11 02:34:44 -04:00

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
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)