Skip to content

Commit

Permalink
https://github.com/spacejam/rio/pull/43
Browse files Browse the repository at this point in the history
  • Loading branch information
CramBL committed Jul 19, 2024
1 parent a4c4501 commit b232303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io_uring/uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,15 @@ impl Uring {
{
let iov = iov.into_new_iovec();

self.with_sqe(Some(iov), true, |sqe| {
self.with_sqe(None, true, |sqe| {
sqe.prep_rw(
IORING_OP_RECV,
stream.as_raw_fd(),
0,
0,
ordering,
);
sqe.addr = iov.iov_base as u64;
sqe.len = u32::try_from(iov.iov_len).unwrap();
})
}
Expand Down

0 comments on commit b232303

Please sign in to comment.