We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6b7a7e + 8eb73a5 commit 0781316Copy full SHA for 0781316
src/blob.rs
@@ -63,6 +63,12 @@ impl<'a> BlobObject<'a> {
63
blobname: name.clone(),
64
cause: err.into(),
65
})?;
66
+
67
+ // workaround a bug in async-std
68
+ // (the executor does not handle blocking operation in Drop correctly,
69
+ // see https://github.com/async-rs/async-std/issues/900 )
70
+ let _ = file.flush().await;
71
72
let blob = BlobObject {
73
blobdir,
74
name: format!("$BLOBDIR/{}", name),
@@ -151,6 +157,10 @@ impl<'a> BlobObject<'a> {
151
157
cause: err,
152
158
});
153
159
}
160
161
+ // workaround, see create() for details
162
+ let _ = dst_file.flush().await;
163
154
164
155
165
blobdir: context.get_blobdir(),
156
166
0 commit comments