File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ pub async fn create_http_clients(
116
116
panic ! ( "error reading cert from {cert_path:?}: {error}" )
117
117
} ) ;
118
118
let identity = reqwest:: Identity :: from_pem ( & cert_pem)
119
- . unwrap_or_else ( |error| panic ! ( "error creating identity : {error}" ) ) ;
119
+ . unwrap_or_else ( |error| panic ! ( "error parsing cert : {error}" ) ) ;
120
120
builder = builder. use_rustls_tls ( ) . identity ( identity) ;
121
121
}
122
122
let client = builder
Original file line number Diff line number Diff line change @@ -142,13 +142,15 @@ impl Orchestrator {
142
142
}
143
143
} ) ;
144
144
match task_handle. await {
145
+ // Task completed successfully
145
146
Ok ( Ok ( result) ) => Ok ( result) ,
147
+ // Task failed, return error propagated from child task that failed
146
148
Ok ( Err ( error) ) => {
147
149
error ! ( request_id = ?task. request_id, %error, "unary task failed" ) ;
148
150
Err ( error)
149
151
}
152
+ // Task cancelled or panicked
150
153
Err ( error) => {
151
- // Task failed due to cancellation or panic
152
154
let error = error. into ( ) ;
153
155
error ! ( request_id = ?task. request_id, %error, "unary task failed" ) ;
154
156
Err ( error)
You can’t perform that action at this time.
0 commit comments