Skip to content

replace bb8 & update test pool #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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