Remove tokio call for accept.

This commit is contained in:
yukirij 2024-08-16 15:03:09 -07:00
parent 24f40bee7f
commit 559bee47b8

View File

@ -175,15 +175,10 @@ async fn main()
match server.bind("0.0.0.0:38612").await {
Ok(_) => {
println!("Listener bind successful.");
tokio::spawn(async move {
println!("ACCEPT");
while server.accept(handle_http, HttpServiceArgs {
bus:bus.connect().unwrap(),
cache:cache.clone(),
}).await.is_ok() { }
});
tokio::spawn(async move { println!("test"); });
}
Err(_) => {
println!("error: failed to bind port 38612.");
@ -195,5 +190,5 @@ async fn main()
}
}
std::thread::park();
//std::thread::park();
}