Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
Signed-off-by: root <[email protected]>
  • Loading branch information
root authored and root committed Dec 7, 2022
1 parent da569a8 commit 193b92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl WriteExt for LogFile {
}

pub struct AioContext {
pub(crate) aio_vec: Vec<aiocb>,
aio_vec: Vec<aiocb>,
pub(crate) buf_vec: Vec<Arc<Mutex<Vec<u8>>>>,
}
impl AioContext {
Expand Down Expand Up @@ -306,7 +306,7 @@ impl AsyncContext for AioContext {
1 as i32,
ptr::null::<libc::timespec>(),
);
if buf_len == aio_return(&mut self.aio_vec[seq]) as usize{
if buf_len == aio_return(&mut self.aio_vec[seq]) as usize {
return Ok(buf_len);
}
}
Expand Down

0 comments on commit 193b92e

Please sign in to comment.