diff --git a/src/engine.rs b/src/engine.rs index ca22807f..6469cc6d 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -527,10 +527,10 @@ where pub fn async_write( &self, - log_batch: &mut LogBatch, + mut log_batch: LogBatch, sync: bool, ) -> BoxFuture<'static, Result> { - self.write_impl(log_batch, sync) + self.write_impl(&mut log_batch, sync) } /// Flush stats about EntryCache.