Skip to content

Commit 8b282cf

Browse files
committed
typos/fixes
1 parent 0598e2f commit 8b282cf

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

bfd-async/src/dispatcher/end_to_end.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async fn two_sessions_converge_then_peer_loss_drives_down() {
151151
// Drop B's peer: this aborts B's session (so it stops sending) and shuts
152152
// down B's listener socket.
153153
let handle = daemon_b
154-
.remove_peer(LOCALHOST)
154+
.remove_peer(addr_a.ip())
155155
.expect("removing the only peer yields a shutdown handle");
156156
handle.shutdown().await;
157157

bfd-async/src/dispatcher/proptests.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ impl Model {
106106
if self.peer_to_addr.contains_key(&peer) {
107107
return EnsureOutcome::PeerExists;
108108
}
109-
// A bind only happens when this address has no listener yet.
110-
let listener_exists = self.peer_to_addr.values().any(|a| *a == addr);
111-
if !listener_exists && fail_addrs.contains(&addr) {
109+
// Are we supposed to report failures for this listening addr?
110+
if fail_addrs.contains(&addr) {
112111
return EnsureOutcome::BindFailed;
113112
}
114113
self.peer_to_addr.insert(peer, addr);

mg-api-types/versions/src/bfd_nonzero_detect_mult/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// License, v. 2.0. If a copy of the MPL was not distributed with this
33
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5-
//! Version `BFD_NONZER_DETECT_MULT` of the Maghemite Admin API.
5+
//! Version `BFD_NONZERO_DETECT_MULT` of the Maghemite Admin API.
66
//!
77
//! Changes `BfdPeerConfig::detection_threshold` from `u8` to `NonZeroU8`. (Per
88
//! RFC 5880, detection multipliers must be nonzero.)

0 commit comments

Comments
 (0)