File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ impl AggregatorRelay {
42
42
. await ;
43
43
match response {
44
44
Ok ( response) => match response. status ( ) {
45
- StatusCode :: CREATED => {
45
+ StatusCode :: CREATED | StatusCode :: ACCEPTED => {
46
46
info ! ( self . logger, "Sent successfully signature message to aggregator" ; "signature_message" => #?signature_message) ;
47
47
Ok ( ( ) )
48
48
}
49
49
status => {
50
- error ! ( self . logger, "Post `/register-signatures` should have returned a 201 status code, got: {status}" ) ;
51
- Err ( anyhow ! ( "Post `/register-signatures` should have returned a 201 status code, got: {status}" ) )
50
+ error ! ( self . logger, "Post `/register-signatures` should have returned a 201 or 202 status code, got: {status}" ) ;
51
+ Err ( anyhow ! ( "Post `/register-signatures` should have returned a 201 or 202 status code, got: {status}" ) )
52
52
}
53
53
} ,
54
54
Err ( err) => {
You can’t perform that action at this time.
0 commit comments