fix: Remove connection caching (no Clone)
Some checks failed
BotServer CI / build (push) Failing after 41s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-03-21 10:37:49 -03:00
parent b3ce293487
commit 9d6c2686f1

View file

@ -20,14 +20,7 @@ fn get_redis_connection(cache_client: &Arc<redis::Client>) -> Option<redis::Conn
}
let timeout = Duration::from_millis(50);
if let Ok(conn) = cache_client.get_connection_with_timeout(timeout) {
if let Ok(mut guard) = REDIS_CONN.lock() {
*guard = Some(conn.clone());
}
Some(conn)
} else {
None
}
cache_client.get_connection_with_timeout(timeout).ok()
}
#[derive(Debug, Clone)]