Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Mar 9, 2023
1 parent 125aade commit edc326d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ipc/driver/Redis.php
Expand Up @@ -49,6 +49,7 @@ public function subscribe()

Coroutine::create(function () {
$this->runWithRedis(function (PHPRedis $redis) {
$redis->setOption(PHPRedis::OPT_READ_TIMEOUT, -1);
$redis->subscribe([$this->getPrefix() . $this->workerId], function ($redis, $channel, $message) {
$this->manager->triggerEvent('message', unserialize($message));
});
Expand Down

0 comments on commit edc326d

Please sign in to comment.