fix server start indicator position

This commit is contained in:
yggverse 2025-02-23 03:28:53 +02:00
parent 61f5e22da3
commit 6027dd52d3

View file

@ -30,10 +30,9 @@ fn main() -> Result<()> {
&argument.password,
)?)?;
let listener = {
let listener = TcpListener::bind(&argument.bind)?;
println!("[{}] [info] Server started on {}", now(), argument.bind);
TcpListener::bind(&argument.bind)?
};
for stream in listener.incoming() {
match stream {
@ -188,7 +187,6 @@ fn titan(
}
Ok(read) => {
total += read;
// validate server-side limits
if argument.size.is_some_and(|limit| total > limit) {
if let Err(e) = tmp.delete() {
@ -226,7 +224,6 @@ fn titan(
},
);
}
// begin chunk recording into the temporary file
match tmp.file.write(&input[..read]) {
Ok(write) => {