refactor: remove unused binary plugin finalization logic

This commit is contained in:
Andrew Phillips
2025-08-19 12:36:24 -03:00
committed by Andrew Phillips (aider)
parent ff5d233509
commit a46bf3364a

View File

@@ -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);