diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-07 14:30:23 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-07 14:30:23 -0500 |
commit | 69b2275a0aa9eaff5134777f8a228c2132df02e1 (patch) | |
tree | 76b8c2fb124ca7e1f532df3d3557d8741076f950 /src/api.rs | |
parent | 1dbe3776c682f469d1497247fac22f0aa233a598 (diff) |
refactor(wip): experiment with rocksdbrocksdb
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -40,7 +40,9 @@ mod tests { async fn test_healthcheck_ok(pool: PgPool) -> TestResult { setup_test_env(); - let router = Router::new().merge(router()).with_state(AppState { pool }); + let router = Router::new() + .merge(router()) + .with_state(AppState::with_pool(pool, "./rocks.db")); let request = Request::builder().uri("/healthcheck").body(Body::empty())?; @@ -55,7 +57,9 @@ mod tests { async fn test_fallback_not_found(pool: PgPool) -> TestResult { setup_test_env(); - let router = Router::new().merge(router()).with_state(AppState { pool }); + let router = Router::new() + .merge(router()) + .with_state(AppState::with_pool(pool, "./rocks.db")); let request = Request::builder() .uri("/does-not-exist") |