From 48b7adb18be1a7feae597459958cf59e5e71bd0d Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 23 Feb 2025 06:33:09 +0200 Subject: [PATCH] add comments --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) 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;