Skip to content

Commit

Permalink
Merge pull request #399 from AdExNetwork/replace-bb8-with-deadpool
Browse files Browse the repository at this point in the history
replace bb8 & update test pool
  • Loading branch information
elpiel authored May 10, 2021
2 parents ce122e1 + cf55867 commit e0fe4f6
Show file tree
Hide file tree
Showing 16 changed files with 310 additions and 308 deletions.
28 changes: 0 additions & 28 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions primitives/src/util/tests/prep_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ pub mod postgres {
.host(&POSTGRES_HOST)
.port(*POSTGRES_PORT);

if let Some(db) = POSTGRES_DB.as_ref() {
config.dbname(db);
}

let mgr_config = ManagerConfig {
recycling_method: RecyclingMethod::Fast,
};
Expand Down
11 changes: 3 additions & 8 deletions sentry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ hyper = { version = "0.14", features = ["stream", "runtime", "http1", "server"]
regex = "1"
# Database
redis = { version = "0.19", features = ["aio", "tokio-comp"] }
bb8 = "0.7"
bb8-postgres = { version = "0.7", features = ["with-chrono-0_4", "with-serde_json-1"] }
deadpool = "0.7.0"
deadpool-postgres = "0.7.0"
tokio-postgres = { version = "0.7.0", features = ["with-chrono-0_4", "with-serde_json-1"] }

# Migrations
migrant_lib = { version = "^0.32", features = ["d-postgres"] }
Expand All @@ -37,10 +38,4 @@ serde_urlencoded = "^0.7"
# Other
lazy_static = "1.4.0"
thiserror = "^1.0"
tokio-postgres = { version = "0.7.0", features = ["with-chrono-0_4", "with-serde_json-1"] }

[dev-dependencies]
# todo: Replace `bb8` once we update all places.
deadpool = "0.7.0"
deadpool-postgres = "0.7.0"
once_cell = "1.5.2"
Loading

0 comments on commit e0fe4f6

Please sign in to comment.