Remove tokio call for accept.
This commit is contained in:
parent
24f40bee7f
commit
559bee47b8
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user