Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Aug 25, 2023
1 parent 9c8a21c commit ebd24ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aquadoggo/src/replication/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl ConnectionManager {
let mut attempt_peers: Vec<(Peer, TargetSet)> = dedup_peers
.values()
.filter_map(|(peer, status)| {
let sessions = self.sync_manager.get_sessions(&peer);
let sessions = self.sync_manager.get_sessions(peer);

// 1. Did we already receive this peers announcement state? If not we can't do
// anything yet and need to wait.
Expand Down Expand Up @@ -386,7 +386,7 @@ impl ConnectionManager {
.any(|session| session.target_set() == target_set);

if active_sessions.len() < MAX_SESSIONS_PER_PEER && !has_active_target_set_session {
Some((peer.clone(), target_set))
Some((*peer, target_set))
} else {
None
}
Expand Down

0 comments on commit ebd24ff

Please sign in to comment.