diff --git a/src/main.rs b/src/main.rs index f3ea28e..95ad983 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,6 +122,8 @@ fn gemini( ) { use titanite::*; println!("[{}] [info] [{peer}] Request: {}", now(), gemini.url); + // file could be large, + // to not overflow the memory pool, build the response using chunks match storage::Item::from_url(gemini.url.as_str(), &argument.directory) { Ok(item) => { let mut read: usize = 0;