From 59a12f459356eecd652e655995bc66e59256545a Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 19 Feb 2019 20:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=87=A8=F0=9F=87=B3=20Update=20Chinese=20R?= =?UTF-8?q?EADME?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_ZH.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_ZH.md b/README_ZH.md index 316b0a7..9941f34 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -100,7 +100,7 @@ func main() { // Submit tasks one by one. for i := 0; i < runTimes; i++ { wg.Add(1) - p.Serve(int32(i)) + p.Invoke(int32(i)) } wg.Wait() fmt.Printf("running goroutines: %d\n", p.Running()) @@ -152,7 +152,7 @@ func main() { // Throttle the requests traffic with ants pool. This process is asynchronous and // you can receive a result from the channel defined outside. - if err := pool.Serve(request); err != nil { + if err := pool.Invoke(request); err != nil { http.Error(w, "throttle limit error", http.StatusInternalServerError) }