Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Antony1060 committed Nov 23, 2023
1 parent 67420c6 commit 3969035
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/gateway/endpoint.rs
Expand Up @@ -34,14 +34,6 @@ pub enum CCIPEndpointError {

impl IntoResponse for CCIPEndpointError {
fn into_response(self) -> Response {
// TODO: remove
if let CCIPEndpointError::ResolveError(x) = &self {
if let super::resolution::ResolveError::Unparsable = x {
return (axum::http::StatusCode::UNPROCESSABLE_ENTITY, x.to_string())
.into_response();
}
}

GatewayResponse::Error(self.to_string()).into_response()
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/sha256.rs
Expand Up @@ -5,4 +5,4 @@ pub fn hash<T: AsRef<[u8]>>(data: T) -> Vec<u8> {
hasher.update(data);

hasher.finalize().as_slice().into()
}
}

0 comments on commit 3969035

Please sign in to comment.