Spaces:
Sleeping
Sleeping
Smasduq commited on
Commit ·
5d306e3
1
Parent(s): 213229e
Deploy connection pool optimizations
Browse files- src/main.rs +1 -1
src/main.rs
CHANGED
|
@@ -60,7 +60,7 @@ async fn main() {
|
|
| 60 |
|
| 61 |
let policy = ReconnectPolicy::default();
|
| 62 |
// Use a connection pool for higher concurrency
|
| 63 |
-
let pool = RedisPool::new(config, Some(perf), None, Some(policy),
|
| 64 |
|
| 65 |
println!("[DEBUG] Initiating Redis connection to {}...", redis_url);
|
| 66 |
pool.connect();
|
|
|
|
| 60 |
|
| 61 |
let policy = ReconnectPolicy::default();
|
| 62 |
// Use a connection pool for higher concurrency
|
| 63 |
+
let pool = RedisPool::new(config, Some(perf), None, Some(policy), 3).unwrap();
|
| 64 |
|
| 65 |
println!("[DEBUG] Initiating Redis connection to {}...", redis_url);
|
| 66 |
pool.connect();
|