Removed unnecessary code
This commit is contained in:
parent
1e6d04402a
commit
ad6d7dcc26
@ -1,7 +1,4 @@
|
||||
use std::{
|
||||
env,
|
||||
net::SocketAddr
|
||||
};
|
||||
use std::net::SocketAddr;
|
||||
use tokio::net::TcpListener;
|
||||
use tower_http::services::ServeDir;
|
||||
use axum::{
|
||||
@ -21,8 +18,6 @@ mod upload;
|
||||
async fn main() {
|
||||
let args = argparse::parse_args();
|
||||
let conf = config::load_config();
|
||||
let cwd = env::current_dir().unwrap();
|
||||
|
||||
let port = match args.port {
|
||||
Some(port) => port,
|
||||
None => conf.web_port
|
||||
|
Loading…
x
Reference in New Issue
Block a user