diff --git a/examples/main.go b/examples/main.go index 5082f54..773abd6 100644 --- a/examples/main.go +++ b/examples/main.go @@ -57,7 +57,7 @@ func main() { } for i := 0; i < runTimes; i++ { wg.Add(1) - ants.Submit(syncCalculateSum) + _ = ants.Submit(syncCalculateSum) } wg.Wait() fmt.Printf("running goroutines: %d\n", ants.Running()) @@ -73,7 +73,7 @@ func main() { // Submit tasks one by one. for i := 0; i < runTimes; i++ { wg.Add(1) - p.Invoke(int32(i)) + _ = p.Invoke(int32(i)) } wg.Wait() fmt.Printf("running goroutines: %d\n", p.Running())