This commit is contained in:
2020-09-11 01:12:32 +08:00
parent e2e0b7319d
commit 67ca557961
3 changed files with 10 additions and 16 deletions
+1 -5
View File
@@ -38,12 +38,8 @@ class Running extends \Queue\Abstracts\Queue
* @return false|int
* @throws ComponentException
*/
public function del(string $consumer)
public function del(Consumer $consumer)
{
$consumer = unserialize($consumer);
if (!($consumer instanceof Consumer)) {
return true;
}
return $this->pop(self::QUEUE_RUNNING, $consumer);
}