Embrace single-threading it
This commit is contained in:
parent
bd6c08a194
commit
fbc49bcf69
|
@ -1,7 +1,6 @@
|
|||
use std::borrow::Cow;
|
||||
use std::io::Cursor;
|
||||
use std::ops::Deref;
|
||||
use std::sync::Arc;
|
||||
|
||||
use tiny_http::Header;
|
||||
use tiny_http::Request;
|
||||
|
@ -11,7 +10,6 @@ use tiny_http::StatusCode;
|
|||
|
||||
pub fn go(domains: &[&str]) {
|
||||
let server = Server::http("0.0.0.0:3243").unwrap();
|
||||
let server = Arc::new(server);
|
||||
|
||||
for req in server.incoming_requests() {
|
||||
let route = Route::parse_request(&req);
|
||||
|
|
Loading…
Reference in a new issue