chore: fix typo

This commit is contained in:
Klaus
2020-08-16 22:25:51 +08:00
committed by Kevin Wan
parent 721b7def7c
commit 4bdf5e4c90
5 changed files with 13 additions and 13 deletions

View File

@@ -8,11 +8,11 @@ import (
)
func main() {
exeutor := executors.NewBulkExecutor(func(items []interface{}) {
executor := executors.NewBulkExecutor(func(items []interface{}) {
fmt.Println(len(items))
}, executors.WithBulkTasks(10))
for {
exeutor.Add(1)
executor.Add(1)
time.Sleep(time.Millisecond * 90)
}
}