web search done right
skip awaiting webgraph nodes in dev environments as they may not exist
Mikkel Denker7814bf7f1ac4
diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.tomlindex dd532d45..2e64548b 100644--- a/crates/core/Cargo.toml+++ b/crates/core/Cargo.toml@@ -11,7 +11,7 @@ version = "0.1.0"[features]cors = []-default = ["cors"]+default = ["cors", "dev"]dev = ["cors"]return_body = []diff --git a/crates/core/src/entrypoint/indexer/worker.rs b/crates/core/src/entrypoint/indexer/worker.rsindex 186b69e8..7e572add 100644--- a/crates/core/src/entrypoint/indexer/worker.rs+++ b/crates/core/src/entrypoint/indexer/worker.rs@@ -153,12 +153,18 @@ impl Webgraph {IndexerGraphConfig::Remote { gossip } => {let cluster = crate::start_gossip_cluster_thread(gossip.clone(), None);let remote = RemoteWebgraph::new(cluster).await;- remote.await_ready().await;+ #[cfg(not(feature = "dev"))]+ {+ remote.await_ready().await;+ }Self::Remote(remote)}IndexerGraphConfig::Existing { cluster } => {let remote = RemoteWebgraph::new(cluster.clone()).await;- remote.await_ready().await;+ #[cfg(not(feature = "dev"))]+ {+ remote.await_ready().await;+ }Self::Remote(remote)}}