Skip to content

Commit 5ea2e23

Browse files
committed
队列实现优化
1 parent b16476d commit 5ea2e23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Driver/RedisQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function push(Job $job,float $timeout = 3.0): bool
4646
}
4747
}
4848

49-
public function pop(float $timeout = 3.0, array $params = []): ?Job
49+
public function pop(float $timeout = 3.0, ?array $params = null): ?Job
5050
{
5151
//检查当前秒数的延迟任务是否存在未执行任务。
5252
if($this->lastCheckDelay != time()){

0 commit comments

Comments
 (0)