Skip to content

Commit

Permalink
fix mutable
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <[email protected]>
  • Loading branch information
Little-Wallace committed Sep 27, 2020
1 parent 5639121 commit 38d77cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,10 @@ where

pub fn async_write(
&self,
log_batch: &mut LogBatch<E, W>,
mut log_batch: LogBatch<E, W>,
sync: bool,
) -> BoxFuture<'static, Result<usize>> {
self.write_impl(log_batch, sync)
self.write_impl(&mut log_batch, sync)
}

/// Flush stats about EntryCache.
Expand Down

0 comments on commit 38d77cf

Please sign in to comment.