Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
Signed-off-by: root <root@WxyR9P.localdomain>
  • Loading branch information
root authored and root committed Dec 7, 2022
1 parent 1e42945 commit 76f4403
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 76f4403

Please sign in to comment.