Skip to content

Commit

Permalink
chore: kill the long unused db middleware
Browse files Browse the repository at this point in the history
and a few more dep updates. also remove the hyper dep which we don't need (it's
a sub-dependency)

Closes #693
Closes #1018
  • Loading branch information
pjenvey committed Mar 10, 2021
1 parent 133aa7d commit 8f9cce7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 208 deletions.
27 changes: 13 additions & 14 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ googleapis-raw = { version = "0", path = "vendor/mozilla-rust-sdk/googleapis-raw
# syncserver to either fail to either compile, or start. In those cases, try
# `cargo build --features grpcio/openssl ...`
grpcio = { version = "0.8" }
hyper = "0.13.10" # RUSTSEC-2021-0020 requires 0.13.10+ or 0.14.3+
lazy_static = "1.4.0"
pyo3 = "0.13"
hawk = "3.2"
Expand Down
1 change: 0 additions & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ macro_rules! build_app {
// These will wrap all outbound responses with matching status codes.
.wrap(ErrorHandlers::new().handler(StatusCode::NOT_FOUND, ApiError::render_404))
// These are our wrappers
// .wrap(middleware::db::DbTransaction::new())
.wrap(middleware::weave::WeaveTimestamp::new())
.wrap(middleware::sentry::SentryWrapper::default())
.wrap(middleware::rejectua::RejectUA::default())
Expand Down
191 changes: 0 additions & 191 deletions src/web/middleware/db.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/web/middleware/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// pub mod db;
pub mod rejectua;
pub mod sentry;
pub mod weave;
Expand Down

0 comments on commit 8f9cce7

Please sign in to comment.