refactor(upload): route upload commands to dedicated handler

This commit is contained in:
Stanislav N Mikhailov
2026-08-10 14:17:29 +03:00
parent 3c3487b554
commit e45b86cd20
4 changed files with 61 additions and 91 deletions
+11
View File
@@ -0,0 +1,11 @@
use tokio::{io, net::TcpStream, stream};
use crate::protocol::Header;
pub async fn handle(
stream: &mut TcpStream,
header: Header,
) -> io::Result<()> {
println!("Обработчик UPLOAD получил заголовок: {header:?}");
Ok(())
}