fix(connlib): remove outdated assertion due to possibility of network changes (#4222)

found while working on #4163
This commit is contained in:
Gabi
2024-03-19 23:05:07 -03:00
committed by GitHub
parent baa2831664
commit fa387d0e59

View File

@@ -961,12 +961,9 @@ impl ChannelBindings {
}
fn handle_failed_binding(&mut self, c: u16) {
let Some(channel) = self.inner.remove(&c) else {
if self.inner.remove(&c).is_none() {
debug_assert!(false, "No channel binding for {c}");
return;
};
debug_assert!(!channel.bound, "Channel should not yet be bound")
}
}
fn set_confirmed(&mut self, c: u16, now: Instant) -> bool {