Browse Source

modify sleep time

stanley-king 3 years ago
parent
commit
c82652385c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      helper/queue/iqueue.php

+ 1 - 1
helper/queue/iqueue.php

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