Refactored project
This commit is contained in:
@ -21,7 +21,7 @@ fn main() {
|
||||
for stream in tcp_socket.incoming() {
|
||||
pool_mutex_ref.lock().unwrap().execute(|| {
|
||||
let stream = stream.unwrap();
|
||||
http::handler::connection_handler(http::Stream::Tcp(stream));
|
||||
http::connection_handler(http::Stream::Tcp(stream));
|
||||
});
|
||||
}
|
||||
}));
|
||||
@ -41,7 +41,7 @@ fn main() {
|
||||
pool_mutex_ref.lock().unwrap().execute(move || {
|
||||
let stream = stream.unwrap();
|
||||
let stream = acceptor.accept(stream).unwrap();
|
||||
http::handler::connection_handler(http::Stream::Ssl(stream));
|
||||
http::connection_handler(http::Stream::Ssl(stream));
|
||||
});
|
||||
}
|
||||
}));
|
||||
|
Reference in New Issue
Block a user