Skip to content

Commit 2260abb

Browse files
Apply suggestions from code review
Co-authored-by: Marcos Nicolau <[email protected]>
1 parent 13187af commit 2260abb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aggregation_mode/gateway/src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ pub(crate) fn get_time_left_day_formatted() -> String {
2626
let minutes = (seconds_remaining % 3600) / 60;
2727
let seconds = seconds_remaining % 60;
2828

29-
format!("{hours}:{minutes}:{seconds}")
29+
format!("{hours}:{minutes}:{seconds} UTC")
3030
}

aggregation_mode/gateway/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ impl GatewayServer {
351351
.json(AppResponse::new_unsucessfull("Invalid address", 400));
352352
}
353353

354-
let address = address_raw.to_lowercase();
354+
let address = address_raw.trim().to_lowercase();
355355

356356
let Ok(daily_tasks_by_address) = state.db.get_daily_tasks_by_address(&address).await else {
357357
return HttpResponse::InternalServerError()

0 commit comments

Comments
 (0)