warn instead of err

This commit is contained in:
Bryan Stitt 2022-05-21 23:49:23 +00:00
parent 2b4a2c3cad
commit 5af0defbff

View File

@ -96,11 +96,9 @@ impl Web3Connections {
} }
} }
// TODO: less than 3? what should we do here?
if connections.len() < 2 { if connections.len() < 2 {
// TODO: less than 3? what should we do here? warn!("Only 1 connection!");
return Err(anyhow::anyhow!(
"need at least 2 connections when subscribing to heads!"
));
} }
let synced_connections = SyncedConnections::default(); let synced_connections = SyncedConnections::default();