File tree Expand file tree Collapse file tree
mg-api-types/versions/src/bfd_nonzero_detect_mult Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff line change 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.)
You can’t perform that action at this time.
0 commit comments