This commit is contained in:
2023-10-06 15:10:54 +03:00
parent 36aad923d3
commit 7f27874be6

View File

@@ -73,7 +73,7 @@ async fn sse_handler(
#[actix_web::main] #[actix_web::main]
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
let redis_url = env::var("REDIS_URL").unwrap_or_else(|_| String::from("redis://127.0.0.1/")); let redis_url = env::var("REDIS_URL").unwrap_or_else(|_| String::from("redis://127.0.0.1/"));
let client = redis::Client::open(redis_url).unwrap(); let client = redis::Client::open(redis_url.clone()).unwrap();
println!("Connecting to Redis: {}", redis_url); println!("Connecting to Redis: {}", redis_url);
HttpServer::new(move || { HttpServer::new(move || {