From 64bcf94ab552de54bb5f06efbbae82b5662747fd Mon Sep 17 00:00:00 2001 From: Greg Colombo Date: Tue, 2 Jul 2024 17:55:06 +0000 Subject: [PATCH] clean up unused async --- lib/propolis/src/block/crucible.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/propolis/src/block/crucible.rs b/lib/propolis/src/block/crucible.rs index b8c09aacf..9825a8c76 100644 --- a/lib/propolis/src/block/crucible.rs +++ b/lib/propolis/src/block/crucible.rs @@ -268,7 +268,7 @@ impl CrucibleBackend { .map_err(CrucibleError::into) } - async fn spawn_workers(&self) { + fn spawn_workers(&self) { // TODO: make this tunable? let worker_count = 8; self.workers.extend((0..worker_count).map(|n| { @@ -283,7 +283,7 @@ impl CrucibleBackend { tokio::spawn( async move { worker_state.process_loop(worker_acc).await }, ) - })); + })) } pub async fn volume_is_active(&self) -> Result { @@ -302,7 +302,7 @@ impl block::Backend for CrucibleBackend { async fn start(&self) -> anyhow::Result<()> { self.state.volume.activate().await?; self.state.attachment.start(); - self.spawn_workers().await; + self.spawn_workers(); Ok(()) } async fn stop(&self) -> () {