mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat: use subscriber client for subscription in pubsub (#1297)
This commit is contained in:
@ -42,6 +42,9 @@ impl PubSubInterface for redis_interface::RedisConnectionPool {
|
||||
&self,
|
||||
channel: &str,
|
||||
) -> errors::CustomResult<usize, redis_errors::RedisError> {
|
||||
// Spawns a task that will automatically re-subscribe to any channels or channel patterns used by the client.
|
||||
self.subscriber.manage_subscriptions();
|
||||
|
||||
self.subscriber
|
||||
.subscribe(channel)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user