Skip to content

Commit

Permalink
bump tide
Browse files Browse the repository at this point in the history
  • Loading branch information
jparr721 committed Jun 7, 2024
1 parent cb0b05a commit e470347
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 101 deletions.
103 changes: 9 additions & 94 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ hotshot-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag =
serde = { version = "1.0", features = ["derive"] }
snafu = "0.8"
tagged-base64 = "0.4"
tide-disco = "0.7"
tide-disco = "0.8"
toml = "0.8"
tracing = "0.1"
vbs = "0.1.4"

[dev-dependencies]
hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "rc-0.5.57" }
portpicker = "0.1.1"
surf-disco = "0.7"
surf-disco = "0.8"
10 changes: 5 additions & 5 deletions src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ impl tide_disco::error::Error for Error {
}
fn status(&self) -> StatusCode {
match self {
Error::Request { .. } => StatusCode::BadRequest,
Error::Request { .. } => StatusCode::BAD_REQUEST,
Error::EventAvailable { source, .. } => match source {
EventError::NotFound => StatusCode::NotFound,
EventError::Missing => StatusCode::NotFound,
EventError::Error { .. } => StatusCode::InternalServerError,
EventError::NotFound => StatusCode::NOT_FOUND,
EventError::Missing => StatusCode::NOT_FOUND,
EventError::Error { .. } => StatusCode::INTERNAL_SERVER_ERROR,
},
Error::Custom { .. } => StatusCode::InternalServerError,
Error::Custom { .. } => StatusCode::INTERNAL_SERVER_ERROR,
}
}
}
Expand Down

0 comments on commit e470347

Please sign in to comment.