modify plugin name

This commit is contained in:
2022-07-11 18:53:19 +08:00
parent 7e409968be
commit 843abbeaa6
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -40,6 +40,9 @@ class PoolQueue implements QueueInterface
*/
public function push(mixed $data, float $timeout = -1): bool
{
if ($this->isFull()) {
return false;
}
if (!$this->isClose()) {
return $this->queue->push($data, $timeout);
}
+3
View File
@@ -44,6 +44,9 @@ class SplQueue implements QueueInterface
public function push(mixed $data, float $timeout = -1): bool
{
// TODO: Implement push() method.
if ($this->isFull()) {
return false;
}
$this->channel->enqueue($data);
return true;
}