From a46bf3364ae696e9ba7ba9e4ba3c55a56f422bee Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Tue, 19 Aug 2025 12:36:24 -0300 Subject: [PATCH] refactor: remove unused binary plugin finalization logic --- src/modes/save.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/modes/save.rs b/src/modes/save.rs index bc534ba..a7135b6 100644 --- a/src/modes/save.rs +++ b/src/modes/save.rs @@ -178,17 +178,6 @@ fn process_input_stream( for meta_plugin in meta_plugins.iter_mut() { meta_plugin.update(&buffer[..n], conn); } - - // Check if we should finalize and save the binary plugin after 4KB - if total_bytes >= 4096 { - for meta_plugin in meta_plugins.iter_mut() { - if meta_plugin.meta_name() == "binary" && !meta_plugin.is_internal() { - // For internal plugins like BinaryMetaPlugin, we need to handle it differently - // Since we can't easily check the type, we'll use a flag in the finalize method - break; - } - } - } } debug!("MAIN: Ending IO loop after {:?} bytes", item.size);