Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
longbowlu committed Jul 26, 2024
1 parent ad70ea5 commit cba2ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/sui-bridge/src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ async fn get_latest_bridge_committee_with_url_update_event<C: SuiClientInner>(
continue;
};
let member = committee.member(&BridgeAuthorityPublicKeyBytes::from(&event.member));
if member.is_none() {
let Some(member) = member else {
// This is possible when a node is processing an older event while the member quitted at a later point, which is fine.
// Or fullnode returns a stale committee that the member hasn't joined, which is rare and tricy to handle so we just log it.
warn!(
"Committee member not found in the committee: {:?}",
event.member
);
return committee;
}
if member.unwrap().base_url == event.new_url {
};
if member.base_url == event.new_url {
return committee;
}
// If url does not match, it could be:
Expand Down

0 comments on commit cba2ef2

Please sign in to comment.