Skip to content

Commit 93d4072

Browse files
committed
fixup! Replace RelayMap::extend() member fn with RelayMap::join
1 parent 9072fdb commit 93d4072

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

iroh-relay/src/relay_map.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ impl RelayMap {
115115
/// Joins this `RelayMap` with another one into a new one
116116
pub fn join(self, other: RelayMap) -> RelayMap {
117117
let mut a = self.relays.write().expect("poisoned");
118-
119-
// SAFETY: We have exclusive access to this object
120118
let b = other.relays.read().expect("poisoned");
121119
a.extend(b.iter().map(|(a, b)| (a.clone(), b.clone())));
122120
}

0 commit comments

Comments
 (0)