Fix signature of backend change function

This commit is contained in:
Louis Dureuil
2025-09-01 16:38:39 +02:00
parent a8cc66899c
commit a989f52657

View File

@ -119,10 +119,10 @@ impl VectorStore {
&mut self, &mut self,
wtxn: &mut RwTxn, wtxn: &mut RwTxn,
progress: Progress, progress: Progress,
must_stop_processing: MSP, must_stop_processing: &MSP,
) -> crate::Result<()> ) -> crate::Result<()>
where where
MSP: Fn() -> bool + Sync + Send, MSP: Fn() -> bool + Sync,
{ {
if self.backend == VectorStoreBackend::Arroy { if self.backend == VectorStoreBackend::Arroy {
self.backend = VectorStoreBackend::Hannoy; self.backend = VectorStoreBackend::Hannoy;