From a757de9634b247fb0fda4c8e921a626ff0ab15bf Mon Sep 17 00:00:00 2001 From: "liujinsuo@mobiexchanger.com" Date: Mon, 10 Oct 2022 20:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8E=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor.go b/processor.go index 925b9c9..d271cdc 100644 --- a/processor.go +++ b/processor.go @@ -179,7 +179,7 @@ func (p *processor) exec() { // Sleep to avoid slamming redis and let scheduler move tasks into queues. // Note: We are not using blocking pop operation and polling queues instead. // This adds significant load to redis. - time.Sleep(time.Second) + time.Sleep(time.Millisecond * 100) <-p.sema // release token return case err != nil: