logs
This commit is contained in:
parent
47c88d2efb
commit
f726de21e6
|
@ -115,12 +115,13 @@ async fn main() -> std::io::Result<()> {
|
|||
tasks: tasks.clone(),
|
||||
redis: client.clone(),
|
||||
};
|
||||
println!("Connecting to Redis: {}", redis_url);
|
||||
println!("Redis client initialized");
|
||||
HttpServer::new(move || {
|
||||
App::new()
|
||||
.app_data(web::Data::new(state.clone()))
|
||||
.route("/connect", web::get().to(connect_handler))
|
||||
.route("/disconnect", web::get().to(disconnect_handler))
|
||||
println!("Webserver initialized");
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.run()
|
||||
|
|
Loading…
Reference in New Issue
Block a user