Skip to content

Commit

Permalink
Prevent unused import without rpc feature
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Nov 14, 2024
1 parent d743f29 commit 169789c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
io,
path::PathBuf,
str::FromStr,
sync::{Arc, OnceLock, RwLock},
sync::{Arc, RwLock},
};

use anyhow::{bail, Context, Result};
Expand Down Expand Up @@ -57,7 +57,7 @@ pub struct Engine<D> {
local_pool_handle: LocalPoolHandle,
blob_store: D,
#[cfg(feature = "rpc")]
pub(crate) rpc_handler: Arc<OnceLock<crate::rpc::RpcHandler>>,
pub(crate) rpc_handler: Arc<std::sync::OnceLock<crate::rpc::RpcHandler>>,
}

impl<D: iroh_blobs::store::Store> Engine<D> {
Expand Down

0 comments on commit 169789c

Please sign in to comment.