From dd17de79defe2e1728b4ab16b8baa250527d14d1 Mon Sep 17 00:00:00 2001 From: Jacob Date: Wed, 22 Apr 2026 00:45:59 -0400 Subject: [PATCH] fix: close the writer instead of merely dropping it --- src/user_data.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/user_data.rs b/src/user_data.rs index 6f7c19c..23e3489 100644 --- a/src/user_data.rs +++ b/src/user_data.rs @@ -171,6 +171,9 @@ pub enum UpdateError { /// couldn't write (modified) data for this user to the storage operator WriteError { source: std::io::Error }, + + /// couldn't finalize writing (modified) data for this user to the storage operator + FinalizeError { source: std::io::Error }, } impl UserDataManager { @@ -239,6 +242,8 @@ impl UserDataManager { .await .context(update_error::WriteSnafu)?; + decompressed_writer.close().await.context(update_error::FinalizeSnafu)?; + Ok(ret) } }