simplified main function
This commit is contained in:
parent
5d1076f975
commit
5bad0766fd
@ -4,11 +4,7 @@ use std::fs::File;
|
||||
use std::net::{TcpListener, TcpStream};
|
||||
|
||||
fn main() {
|
||||
let mut args = std::env::args();
|
||||
|
||||
let entrypoint = args.next();
|
||||
|
||||
match entrypoint {
|
||||
match std::env::args().next() {
|
||||
Some(s) => match s.as_str() {
|
||||
"connection_listener" => connection_listener_entrypoint(),
|
||||
"http_handler" => http_handler_entrypoint(),
|
||||
|
Loading…
Reference in New Issue
Block a user