Skip to content

Commit

Permalink
chore: address some nits
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaz committed Apr 9, 2024
1 parent c1f5469 commit de0616f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devimint/src/federation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ pub async fn run_cli_dkg(
.set_password(auth_for(peer_id), endpoint)
.await?;
}
let (leader_id, leader_endpoint) = endpoints.iter().next().context("missing peer")?;
let (leader_id, leader_endpoint) = endpoints.first_key_value().context("missing peer")?;
let followers = endpoints
.iter()
.filter(|(id, _)| *id != leader_id)
Expand Down

0 comments on commit de0616f

Please sign in to comment.