Skip to content

Commit

Permalink
worker/environment: Remove obsolete connection_pool field
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Apr 8, 2024
1 parent d12db38 commit e6bbda7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/bin/background-worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ extern crate tracing;

use anyhow::Context;
use crates_io::cloudfront::CloudFront;
use crates_io::db::DieselPool;
use crates_io::fastly::Fastly;
use crates_io::storage::Storage;
use crates_io::team_repo::TeamRepoImpl;
Expand Down Expand Up @@ -96,7 +95,6 @@ fn main() -> anyhow::Result<()> {
.cloudfront(cloudfront)
.fastly(fastly)
.storage(storage)
.connection_pool(DieselPool::new_background_worker(connection_pool.clone()))
.deadpool(deadpool)
.emails(emails)
.team_repo(Box::new(team_repo))
Expand Down
1 change: 0 additions & 1 deletion src/tests/util/test_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ impl TestAppBuilder {
.config(app.config.clone())
.repository_config(repository_config)
.storage(app.storage.clone())
.connection_pool(app.primary_database.clone())
.deadpool(app.deadpool_primary.clone())
.emails(app.emails.clone())
.team_repo(Box::new(self.team_repo))
Expand Down
2 changes: 0 additions & 2 deletions src/worker/environment.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::cloudfront::CloudFront;
use crate::db::DieselPool;
use crate::fastly::Fastly;
use crate::storage::Storage;
use crate::team_repo::TeamRepo;
Expand Down Expand Up @@ -27,7 +26,6 @@ pub struct Environment {
#[builder(default)]
fastly: Option<Fastly>,
pub storage: Arc<Storage>,
pub connection_pool: DieselPool,
pub deadpool: DeadpoolPool,
pub emails: Emails,
pub team_repo: Box<dyn TeamRepo + Send + Sync>,
Expand Down

0 comments on commit e6bbda7

Please sign in to comment.