Skip to content

Commit f6c1359

Browse files
committed
improve: use redis config in pool in redis proxy
1 parent 8174eae commit f6c1359

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/src/Redis/RedisProxy.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ public function psubscribe(array|string $channels, Closure $callback): void
2929

3030
protected function getSubscriber(): Subscriber
3131
{
32-
$pool = $this->factory->getPool($this->poolName);
33-
$connection = $pool->get();
34-
3532
return new Subscriber(
36-
(fn () => $this->config)->call($connection) /* @phpstan-ignore-line */
33+
$this->factory->getPool($this->poolName)->getConfig()
3734
);
3835
}
3936
}

0 commit comments

Comments
 (0)