mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
chore: remove redundant caching code (#4804)
This commit is contained in:
@ -4,7 +4,7 @@ use diesel_models as store;
|
||||
use error_stack::ResultExt;
|
||||
use hyperswitch_domain_models::errors::{StorageError, StorageResult};
|
||||
use masking::StrongSecret;
|
||||
use redis::{kv_store::RedisConnInterface, RedisStore};
|
||||
use redis::{kv_store::RedisConnInterface, pub_sub::PubSubInterface, RedisStore};
|
||||
mod address;
|
||||
pub mod config;
|
||||
pub mod connection;
|
||||
@ -105,7 +105,8 @@ impl<T: DatabaseStore> RouterStore<T> {
|
||||
.attach_printable("Failed to create cache store")?;
|
||||
cache_store.set_error_callback(cache_error_signal);
|
||||
cache_store
|
||||
.subscribe_to_channel(inmemory_cache_stream)
|
||||
.redis_conn
|
||||
.subscribe(inmemory_cache_stream)
|
||||
.await
|
||||
.change_context(StorageError::InitializationError)
|
||||
.attach_printable("Failed to subscribe to inmemory cache stream")?;
|
||||
|
||||
Reference in New Issue
Block a user