File tree 1 file changed +16
-1
lines changed 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ async fn http_response(
282
282
} )
283
283
} ) ?;
284
284
285
+ let start_ts = std:: time:: SystemTime :: now ( ) ;
285
286
let response = client
286
287
. send ( request)
287
288
. await
@@ -306,7 +307,21 @@ async fn http_response(
306
307
message : x. to_string ( ) ,
307
308
} ) ?;
308
309
309
- let result = run_retrieval_with_data_report ( retrieve, & response_string, context, settings) ;
310
+ let result = run_retrieval_with_data_report ( retrieve, & response_string, context, settings) . map (
311
+ |report| {
312
+ let completion_ts = std:: time:: SystemTime :: now ( ) ;
313
+
314
+ RadonReport {
315
+ context : ReportContext {
316
+ start_time : Some ( start_ts) ,
317
+ completion_time : Some ( completion_ts) ,
318
+ ..report. context
319
+ } ,
320
+ running_time : completion_ts. duration_since ( start_ts) . unwrap_or_default ( ) ,
321
+ ..report
322
+ }
323
+ } ,
324
+ ) ;
310
325
311
326
match & result {
312
327
Ok ( report) => {
You can’t perform that action at this time.
0 commit comments