mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(router): subscriber return type (#1292)
This commit is contained in:
@ -23,10 +23,7 @@ use crate::{
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait PubSubInterface {
|
||||
async fn subscribe(
|
||||
&self,
|
||||
channel: &str,
|
||||
) -> errors::CustomResult<usize, redis_errors::RedisError>;
|
||||
async fn subscribe(&self, channel: &str) -> errors::CustomResult<(), redis_errors::RedisError>;
|
||||
|
||||
async fn publish<'a>(
|
||||
&self,
|
||||
@ -40,10 +37,7 @@ pub trait PubSubInterface {
|
||||
#[async_trait::async_trait]
|
||||
impl PubSubInterface for redis_interface::RedisConnectionPool {
|
||||
#[inline]
|
||||
async fn subscribe(
|
||||
&self,
|
||||
channel: &str,
|
||||
) -> errors::CustomResult<usize, redis_errors::RedisError> {
|
||||
async fn subscribe(&self, channel: &str) -> errors::CustomResult<(), 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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user