use fmt.Println instead of println
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/tal-tech/go-zero/core/executors"
|
||||
@@ -8,7 +9,7 @@ import (
|
||||
|
||||
func main() {
|
||||
exeutor := executors.NewBulkExecutor(func(items []interface{}) {
|
||||
println(len(items))
|
||||
fmt.Println(len(items))
|
||||
}, executors.WithBulkTasks(10))
|
||||
for {
|
||||
exeutor.Add(1)
|
||||
|
||||
Reference in New Issue
Block a user