File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
mithril-aggregator/src/http_server/routes
mithril-signer/src/runtime Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub struct MithrilStatusCode();
14
14
15
15
impl MithrilStatusCode {
16
16
pub fn registration_round_not_yet_opened ( ) -> StatusCode {
17
+ // The unwrap is safe here because `from_16` function return error only for values outside of the range 100-999,
17
18
StatusCode :: from_u16 ( 550 ) . unwrap ( )
18
19
}
19
20
}
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ impl StateMachine {
318
318
nested_error : Some ( e) ,
319
319
} ) ?;
320
320
321
- fn filter_error (
321
+ fn handle_registration_result (
322
322
register_result : Result < ( ) , Error > ,
323
323
epoch : Epoch ,
324
324
) -> Result < Option < SignerState > , RuntimeError > {
@@ -338,7 +338,7 @@ impl StateMachine {
338
338
}
339
339
340
340
let register_result = self . runner . register_signer_to_aggregator ( ) . await ;
341
- let next_state_found = filter_error ( register_result, epoch) ?;
341
+ let next_state_found = handle_registration_result ( register_result, epoch) ?;
342
342
343
343
self . metrics_service
344
344
. get_signer_registration_success_since_startup_counter ( )
You can’t perform that action at this time.
0 commit comments