Explorar o código

modify sleep time

stanley-king %!s(int64=3) %!d(string=hai) anos
pai
achega
c82652385c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                             }
                         }