File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments