mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-04-18 14:56:04 -04:00
[ci skip] fmt
This commit is contained in:
parent
bb17e7cee6
commit
aed1006c95
@ -119,8 +119,8 @@ impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display
|
||||
}
|
||||
}
|
||||
|
||||
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone>
|
||||
fmt::Debug for NodeRefLock<'_, N>
|
||||
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone> fmt::Debug
|
||||
for NodeRefLock<'_, N>
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("NodeRefLock").field("nr", &self.nr).finish()
|
||||
|
@ -122,8 +122,8 @@ impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display
|
||||
}
|
||||
}
|
||||
|
||||
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone>
|
||||
fmt::Debug for NodeRefLockMut<'_, N>
|
||||
impl<N: NodeRefAccessorsTrait + NodeRefOperateTrait + fmt::Debug + fmt::Display + Clone> fmt::Debug
|
||||
for NodeRefLockMut<'_, N>
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("NodeRefLockMut")
|
||||
|
@ -1337,12 +1337,12 @@ impl RoutingTableInner {
|
||||
}
|
||||
|
||||
// reliable nodes come first, pessimistically treating our own node as unreliable
|
||||
let ra = a_entry.as_ref().is_some_and(|x| {
|
||||
x.with_inner(|x| x.check_unreliable(cur_ts).is_none())
|
||||
});
|
||||
let rb = b_entry.as_ref().is_some_and(|x| {
|
||||
x.with_inner(|x| x.check_unreliable(cur_ts).is_none())
|
||||
});
|
||||
let ra = a_entry
|
||||
.as_ref()
|
||||
.is_some_and(|x| x.with_inner(|x| x.check_unreliable(cur_ts).is_none()));
|
||||
let rb = b_entry
|
||||
.as_ref()
|
||||
.is_some_and(|x| x.with_inner(|x| x.check_unreliable(cur_ts).is_none()));
|
||||
if ra != rb {
|
||||
if ra {
|
||||
return core::cmp::Ordering::Less;
|
||||
|
@ -97,8 +97,7 @@ impl SignedNodeInfo {
|
||||
}
|
||||
}
|
||||
// Check our relay if we have one
|
||||
self
|
||||
.relay_info()
|
||||
self.relay_info()
|
||||
.map(|relay_ni| {
|
||||
for did in relay_ni.dial_info_detail_list() {
|
||||
match sequencing {
|
||||
|
Loading…
x
Reference in New Issue
Block a user