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