From cd84ab67b3be5fb3433f9cb90b22612c0529d981 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 14 Apr 2019 10:37:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=9C=20Restore=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ants_test.go b/ants_test.go index 9cec37e..f8ac1bb 100644 --- a/ants_test.go +++ b/ants_test.go @@ -95,7 +95,7 @@ func TestAntsPoolWithFuncWaitToGetWorker(t *testing.T) { t.Logf("memory usage:%d MB", curMem) } -TestAntsPoolGetWorkerFromCache is used to test getting worker from sync.Pool. +// TestAntsPoolGetWorkerFromCache is used to test getting worker from sync.Pool. func TestAntsPoolGetWorkerFromCache(t *testing.T) { p, _ := ants.NewPool(TestSize) defer p.Release() @@ -112,7 +112,7 @@ func TestAntsPoolGetWorkerFromCache(t *testing.T) { t.Logf("memory usage:%d MB", curMem) } -TestAntsPoolWithFuncGetWorkerFromCache is used to test getting worker from sync.Pool. +// TestAntsPoolWithFuncGetWorkerFromCache is used to test getting worker from sync.Pool. func TestAntsPoolWithFuncGetWorkerFromCache(t *testing.T) { dur := 10 p, _ := ants.NewPoolWithFunc(TestSize, demoPoolFunc)