diff --git a/plugins/zenoh-plugin-storage-manager/src/storages_mgt/mod.rs b/plugins/zenoh-plugin-storage-manager/src/storages_mgt/mod.rs index 3cf161253a..2a72321813 100644 --- a/plugins/zenoh-plugin-storage-manager/src/storages_mgt/mod.rs +++ b/plugins/zenoh-plugin-storage-manager/src/storages_mgt/mod.rs @@ -31,7 +31,7 @@ pub(crate) async fn create_and_start_storage( admin_key: String, config: StorageConfig, backend: &VolumeInstance, - zenoh: Arc, + zenoh_session: Arc, ) -> ZResult> { tracing::trace!("Create storage '{}'", &admin_key); let capability = backend.get_capability(); @@ -50,7 +50,7 @@ pub(crate) async fn create_and_start_storage( let storage = Arc::new(Mutex::new(storage)); tokio::task::spawn(async move { - StorageService::start(zenoh.clone(), config, &name, storage, capability, rx).await; + StorageService::start(zenoh_session, config, &name, storage, capability, rx).await; }); Ok(tx)