diff --git a/src/config.rs b/src/config.rs index 59f9758..1e0031e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,7 +26,7 @@ pub struct ServerConfig { } lazy_static! { - pub static ref CONFIG_PATH: Mutex = Mutex::new("config.yaml".to_owned()); + pub static ref CONFIG_PATH: Mutex = Mutex::new("".to_owned()); pub static ref CONFIG: Config = init_config(); } diff --git a/src/main.rs b/src/main.rs index 1806154..a421400 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ const DATE_FORMAT: &str = "%a, %d %b %Y %H:%M:%S GMT"; #[cfg(feature = "lru_cache")] lazy_static! { static ref CACHE: Mutex> = { - let cache = LruCache::new(NonZeroUsize::new(8).unwrap()); + let cache = LruCache::new(NonZeroUsize::new(64).unwrap()); Mutex::new(cache) }; } @@ -114,14 +114,10 @@ async fn handle_connection(mut stream: TcpStream) -> Result<(i32, String), Box Result<(i32, String), Box Result<(i32, String), Box Result<(i32, String), Box