From 38d77cf3d7071ea60c306c131aebd13a3d841042 Mon Sep 17 00:00:00 2001 From: Little-Wallace Date: Sun, 27 Sep 2020 14:22:56 +0800 Subject: [PATCH] fix mutable Signed-off-by: Little-Wallace --- src/engine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.