mirror of
https://github.com/Dangoware/confetti-box.git
synced 2025-04-19 07:12:58 -05:00
Flush file on finish
This commit is contained in:
parent
f171051d54
commit
570ad5ce24
1 changed files with 2 additions and 0 deletions
|
@ -343,6 +343,8 @@ pub async fn websocket_upload(
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.insert(&mmid, constructed_file.clone());
|
.insert(&mmid, constructed_file.clone());
|
||||||
|
|
||||||
|
file.flush().await.unwrap();
|
||||||
|
|
||||||
stream.send(rocket_ws::Message::Text(json::serde_json::ser::to_string(&constructed_file).unwrap())).await?;
|
stream.send(rocket_ws::Message::Text(json::serde_json::ser::to_string(&constructed_file).unwrap())).await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue