bokket commented on PR #3763:
URL:
https://github.com/apache/incubator-opendal/pull/3763#issuecomment-1862089437
```rust
impl oio::BlockingWrite for HdfsWriter<hdrs::File> {
fn write(&mut self, bs: &dyn oio::WriteBuf) -> Result<usize> {
self.f.write(bs.chunk()).map_err(new_std_io_error)
}
fn close(&mut self) -> Result<()> {
self.f.flush().map_err(new_std_io_error)?;
Ok(())
}
}
```
Just as the _`close`_ method in the `HdfsWriter<hdrs::File>`.It's more
intuitive,but `hdrs::Asyncfile` only has _`poll_close()`_ I hope to support
`flush()` to achieve `Box::pin(async move {})`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]