File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,16 +106,16 @@ async fn get_latest_bridge_committee_with_url_update_event<C: SuiClientInner>(
106
106
continue ;
107
107
} ;
108
108
let member = committee. member ( & BridgeAuthorityPublicKeyBytes :: from ( & event. member ) ) ;
109
- if member . is_none ( ) {
109
+ let Some ( member ) = member else {
110
110
// This is possible when a node is processing an older event while the member quitted at a later point, which is fine.
111
111
// Or fullnode returns a stale committee that the member hasn't joined, which is rare and tricy to handle so we just log it.
112
112
warn ! (
113
113
"Committee member not found in the committee: {:?}" ,
114
114
event. member
115
115
) ;
116
116
return committee;
117
- }
118
- if member. unwrap ( ) . base_url == event. new_url {
117
+ } ;
118
+ if member. base_url == event. new_url {
119
119
return committee;
120
120
}
121
121
// If url does not match, it could be:
You can’t perform that action at this time.
0 commit comments