mirror of
https://github.com/YGGverse/titanit.git
synced 2026-03-31 17:15:30 +00:00
fix server start indicator position
This commit is contained in:
parent
61f5e22da3
commit
6027dd52d3
1 changed files with 3 additions and 6 deletions
|
|
@ -30,10 +30,9 @@ fn main() -> Result<()> {
|
||||||
&argument.password,
|
&argument.password,
|
||||||
)?)?;
|
)?)?;
|
||||||
|
|
||||||
let listener = {
|
let listener = TcpListener::bind(&argument.bind)?;
|
||||||
println!("[{}] [info] Server started on {}", now(), argument.bind);
|
|
||||||
TcpListener::bind(&argument.bind)?
|
println!("[{}] [info] Server started on {}", now(), argument.bind);
|
||||||
};
|
|
||||||
|
|
||||||
for stream in listener.incoming() {
|
for stream in listener.incoming() {
|
||||||
match stream {
|
match stream {
|
||||||
|
|
@ -188,7 +187,6 @@ fn titan(
|
||||||
}
|
}
|
||||||
Ok(read) => {
|
Ok(read) => {
|
||||||
total += read;
|
total += read;
|
||||||
|
|
||||||
// validate server-side limits
|
// validate server-side limits
|
||||||
if argument.size.is_some_and(|limit| total > limit) {
|
if argument.size.is_some_and(|limit| total > limit) {
|
||||||
if let Err(e) = tmp.delete() {
|
if let Err(e) = tmp.delete() {
|
||||||
|
|
@ -226,7 +224,6 @@ fn titan(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// begin chunk recording into the temporary file
|
// begin chunk recording into the temporary file
|
||||||
match tmp.file.write(&input[..read]) {
|
match tmp.file.write(&input[..read]) {
|
||||||
Ok(write) => {
|
Ok(write) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue