Update geneit_backend/src/connections/redis_connection.rs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Pierre HUBERT 2024-03-22 10:34:12 +00:00
parent de69009174
commit c4ce37208f

View File

@ -7,7 +7,7 @@ use std::cell::RefCell;
use std::time::Duration;
thread_local! {
static REDIS_CONNECTION: RefCell<Option<redis::Client>> = RefCell::new(None);
static REDIS_CONNECTION: RefCell<Option<redis::Client>> = const { RefCell::new(None) };
}
/// Execute a request on Redis