Skip to content

Commit

Permalink
Fix uring_sys call in SQE recv prep helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mxxo authored and withoutboats committed Nov 29, 2020
1 parent 79ce75a commit 045f8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl<'a> SQE<'a> {
pub unsafe fn prep_recv(&mut self, fd: impl UringFd, buf: &mut [u8], flags: MsgFlags) {
let data = buf.as_mut_ptr() as *mut libc::c_void;
let len = buf.len();
uring_sys::io_uring_prep_send(self.sqe, fd.as_raw_fd(), data, len, flags.bits());
uring_sys::io_uring_prep_recv(self.sqe, fd.as_raw_fd(), data, len, flags.bits());
fd.update_sqe(self);
}

Expand Down

0 comments on commit 045f8d4

Please sign in to comment.