mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix(redis): fix recreation on redis connection pool (#1063)
This commit is contained in:
@ -156,6 +156,7 @@ impl RedisConnectionPool {
|
||||
}
|
||||
|
||||
impl Drop for RedisConnectionPool {
|
||||
// safety: panics when invoked without a current tokio runtime
|
||||
fn drop(&mut self) {
|
||||
let rt = tokio::runtime::Handle::current();
|
||||
rt.block_on(self.close_connections())
|
||||
|
||||
Reference in New Issue
Block a user