mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	fix: don't panic in redis library on creating connection pool (#494)
This commit is contained in:
		| @ -5,10 +5,13 @@ use crate::settings::Database; | ||||
|  | ||||
| pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>; | ||||
|  | ||||
| #[allow(clippy::expect_used)] | ||||
| pub async fn redis_connection( | ||||
|     conf: &crate::settings::Settings, | ||||
| ) -> redis_interface::RedisConnectionPool { | ||||
|     redis_interface::RedisConnectionPool::new(&conf.redis).await | ||||
|     redis_interface::RedisConnectionPool::new(&conf.redis) | ||||
|         .await | ||||
|         .expect("Failed to create Redis connection Pool") | ||||
| } | ||||
|  | ||||
| #[allow(clippy::expect_used)] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kartikeya Hegde
					Kartikeya Hegde