Skip to content

Commit

Permalink
fix binding cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorgan committed Jan 19, 2025
1 parent 111c05d commit 546cc4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/cpp/src/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ unsafe fn operator_write(op: ffi::OperatorPtr, path: String, bs: Vec<u8>) -> Rus
.0
.write(&path, bs)
.await
.map(|_| ())
.map_err(|e| CxxAsyncException::new(e.to_string().into_boxed_str()))?)
})
}
1 change: 1 addition & 0 deletions core/tests/behavior/async_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ pub async fn test_write_with_append_returns_metadata(op: Operator) -> Result<()>
let (content_two, _) = gen_bytes(op.info().full_capability());

op.write_with(&path, content_one.clone())
.append(true)
.await
.expect("append file first time must success");

Expand Down

0 comments on commit 546cc4c

Please sign in to comment.