Skip to content

Commit

Permalink
feat: changing the error_reason to be error
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Nov 12, 2024
1 parent 500b71b commit 93e978d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handlers/chain_agnostic/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct QueryParams {
pub struct StatusResponse {
status: BridgingStatus,
created_at: usize,
error_reason: Option<String>,
error: Option<String>,
/// Polling interval in ms for the client
check_in: Option<usize>,
}
Expand Down Expand Up @@ -76,7 +76,7 @@ async fn handler_internal(
return Ok(Json(StatusResponse {
status: bridging_status_item.status,
created_at: bridging_status_item.created_at,
error_reason: bridging_status_item.error_reason,
error: bridging_status_item.error_reason,
check_in: None,
})
.into_response());
Expand All @@ -98,7 +98,7 @@ async fn handler_internal(
status: bridging_status_item.status,
created_at: bridging_status_item.created_at,
check_in: Some(STATUS_POLLING_INTERVAL),
error_reason: None,
error: None,
})
.into_response());
} else {
Expand All @@ -120,7 +120,7 @@ async fn handler_internal(
status: bridging_status_item.status,
created_at: bridging_status_item.created_at,
check_in: Some(STATUS_POLLING_INTERVAL),
error_reason: None,
error: None,
})
.into_response());
}

0 comments on commit 93e978d

Please sign in to comment.