fix: Cloning persist handle for persist_partitions no longer needed
parent
27d58efa18
commit
642bab5db3
|
@ -343,7 +343,7 @@ where
|
|||
shutdown_tx,
|
||||
Arc::clone(&ingest_state),
|
||||
Arc::clone(&buffer),
|
||||
persist_handle,
|
||||
Arc::clone(&persist_handle),
|
||||
wal,
|
||||
));
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ P: PersistQueue + Clone + Sync + 'static,
|
|||
&self,
|
||||
_request: Request<proto::PersistRequest>,
|
||||
) -> Result<Response<proto::PersistResponse>, tonic::Status> {
|
||||
persist_partitions(self.buffer.partition_iter(), self.persist_handle.clone()).await;
|
||||
persist_partitions(self.buffer.partition_iter(), &self.persist_handle).await;
|
||||
|
||||
Ok(Response::new(proto::PersistResponse {}))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue