fix: close the writer instead of merely dropping it
This commit is contained in:
@@ -171,6 +171,9 @@ pub enum UpdateError {
|
|||||||
|
|
||||||
/// couldn't write (modified) data for this user to the storage operator
|
/// couldn't write (modified) data for this user to the storage operator
|
||||||
WriteError { source: std::io::Error },
|
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 {
|
impl UserDataManager {
|
||||||
@@ -239,6 +242,8 @@ impl UserDataManager {
|
|||||||
.await
|
.await
|
||||||
.context(update_error::WriteSnafu)?;
|
.context(update_error::WriteSnafu)?;
|
||||||
|
|
||||||
|
decompressed_writer.close().await.context(update_error::FinalizeSnafu)?;
|
||||||
|
|
||||||
Ok(ret)
|
Ok(ret)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user