Skip to content

Commit cba2ef2

Browse files
committed
comments
1 parent ad70ea5 commit cba2ef2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/sui-bridge/src/monitor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ async fn get_latest_bridge_committee_with_url_update_event<C: SuiClientInner>(
106106
continue;
107107
};
108108
let member = committee.member(&BridgeAuthorityPublicKeyBytes::from(&event.member));
109-
if member.is_none() {
109+
let Some(member) = member else {
110110
// This is possible when a node is processing an older event while the member quitted at a later point, which is fine.
111111
// Or fullnode returns a stale committee that the member hasn't joined, which is rare and tricy to handle so we just log it.
112112
warn!(
113113
"Committee member not found in the committee: {:?}",
114114
event.member
115115
);
116116
return committee;
117-
}
118-
if member.unwrap().base_url == event.new_url {
117+
};
118+
if member.base_url == event.new_url {
119119
return committee;
120120
}
121121
// If url does not match, it could be:

0 commit comments

Comments
 (0)