mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
fix: impl Drop for RedisConnectionPool (#1051)
This commit is contained in:
@ -155,6 +155,13 @@ impl RedisConnectionPool {
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for RedisConnectionPool {
|
||||
fn drop(&mut self) {
|
||||
let rt = tokio::runtime::Handle::current();
|
||||
rt.block_on(self.close_connections())
|
||||
}
|
||||
}
|
||||
|
||||
struct RedisConfig {
|
||||
default_ttl: u32,
|
||||
default_stream_read_count: u64,
|
||||
|
||||
Reference in New Issue
Block a user