From 5af0defbff0abcf3cc7c488d7b8719220cf9b9f2 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 21 May 2022 23:49:23 +0000 Subject: [PATCH] warn instead of err --- web3-proxy/src/connections.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web3-proxy/src/connections.rs b/web3-proxy/src/connections.rs index 8a6a1048..4e2c7c1a 100644 --- a/web3-proxy/src/connections.rs +++ b/web3-proxy/src/connections.rs @@ -96,11 +96,9 @@ impl Web3Connections { } } + // TODO: less than 3? what should we do here? if connections.len() < 2 { - // TODO: less than 3? what should we do here? - return Err(anyhow::anyhow!( - "need at least 2 connections when subscribing to heads!" - )); + warn!("Only 1 connection!"); } let synced_connections = SyncedConnections::default();