Skip to content

Commit 8d1a4c9

Browse files
committed
small tidy up
1 parent 336428e commit 8d1a4c9

File tree

1 file changed

+2
-5
lines changed
  • crates/common/src/config

1 file changed

+2
-5
lines changed

crates/common/src/config/mux.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,7 @@ async fn fetch_lido_registry_keys(
216216
chain: Chain,
217217
node_operator_id: U256,
218218
) -> eyre::Result<Vec<BlsPublicKey>> {
219-
debug!(
220-
"loading operator keys from Lido registry: chain={:?}, node_operator_id={}",
221-
chain, node_operator_id
222-
);
219+
debug!(?chain, %node_operator_id, "loading operator keys from Lido registry");
223220

224221
let provider = ProviderBuilder::new().on_http(rpc_url);
225222
let registry_address = lido_registry_address(chain)?;
@@ -263,7 +260,7 @@ async fn fetch_lido_registry_keys(
263260
}
264261

265262
ensure!(keys.len() == total_keys as usize, "expected {total_keys} keys, got {}", keys.len());
266-
let unique: Vec<_> = keys.iter().collect::<HashSet<_>>().into_iter().collect();
263+
let unique = keys.iter().collect::<HashSet<_>>();
267264
ensure!(unique.len() == keys.len(), "found duplicate keys in registry");
268265

269266
Ok(keys)

0 commit comments

Comments
 (0)