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

@ -29,6 +29,7 @@ func TestLevelQueue(t *testing.T) {
queue, err := NewLevelQueue(handle, LevelQueueConfiguration{
DataDir: "level-queue-test-data",
BatchLength: 2,
Workers: 1,
}, &testData{})
assert.NoError(t, err)
@ -76,6 +77,7 @@ func TestLevelQueue(t *testing.T) {
queue, err = NewLevelQueue(handle, LevelQueueConfiguration{
DataDir: "level-queue-test-data",
BatchLength: 2,
Workers: 1,
}, &testData{})
assert.NoError(t, err)