Skip to content

Commit 8ca6fc3

Browse files
committed
pool
1 parent b3097fe commit 8ca6fc3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/test/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,10 @@ impl TestEnvironment {
417417
)
418418
.expect("can't create registry api"),
419419
),
420-
repository_stats_updater: Arc::new(RepositoryStatsUpdater::new(&config, pool)),
420+
repository_stats_updater: Arc::new(RepositoryStatsUpdater::new(
421+
&config,
422+
pool.clone(),
423+
)),
421424
runtime,
422425
owned_runtime: None,
423426
},
@@ -574,8 +577,8 @@ impl TestDatabase {
574577
})
575578
}
576579

577-
pub(crate) fn pool(&self) -> Pool {
578-
self.pool.clone()
580+
pub(crate) fn pool(&self) -> &Pool {
581+
&self.pool
579582
}
580583

581584
pub(crate) async fn async_conn(&self) -> AsyncPoolClient {

0 commit comments

Comments
 (0)