diff --git a/.github/workflows/test.yaml b/.github/workflows/general.yaml similarity index 98% rename from .github/workflows/test.yaml rename to .github/workflows/general.yaml index 75395d9..75c6430 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/general.yaml @@ -1,4 +1,4 @@ -name: "test" +name: "general" on: push: diff --git a/src/error.rs b/src/error.rs index 5151721..443e008 100644 --- a/src/error.rs +++ b/src/error.rs @@ -38,13 +38,12 @@ impl IntoResponse for ChcServiceError { // local chain is out of sync with CHC // call get_record_data instead of adding record tracing::error!("Invalid chain error: {}", e); - let response = ( + ( StatusCode::from_u16(409).unwrap(), rmp_serde::to_vec("Local chain is out of sync with the CHC") .expect("Failed to serialize to MessagePack"), ) - .into_response(); - response + .into_response() } Self::InternalError(e) => { tracing::error!("Internal server error: {}", e);