瀏覽代碼

modify sleep time

stanley-king 3 年之前
父節點
當前提交
c82652385c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      helper/queue/iqueue.php

+ 1 - 1
helper/queue/iqueue.php

@@ -356,7 +356,7 @@ abstract class ILooper
                         {
                             $content = $this->mServer->rpop();
                             if(empty($content)) {
-                                Swoole\Coroutine::sleep(1);
+                                Swoole\Coroutine::sleep(0.1);
                                 continue;
                             }
                         }