mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Merge branch 'unstable' of https://github.com/sigp/lighthouse into electra-focil
This commit is contained in:
@@ -2450,8 +2450,8 @@ impl ApiTester {
|
||||
};
|
||||
|
||||
let state_match =
|
||||
states.map_or(true, |states| states.contains(&PeerState::Connected));
|
||||
let dir_match = dirs.map_or(true, |dirs| dirs.contains(&PeerDirection::Inbound));
|
||||
states.is_none_or(|states| states.contains(&PeerState::Connected));
|
||||
let dir_match = dirs.is_none_or(|dirs| dirs.contains(&PeerDirection::Inbound));
|
||||
|
||||
let mut expected_peers = Vec::new();
|
||||
if state_match && dir_match {
|
||||
|
||||
Reference in New Issue
Block a user