summaryrefslogtreecommitdiffstats
path: root/src/api.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-05-07 14:30:23 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-05-07 14:30:23 -0500
commit69b2275a0aa9eaff5134777f8a228c2132df02e1 (patch)
tree76b8c2fb124ca7e1f532df3d3557d8741076f950 /src/api.rs
parent1dbe3776c682f469d1497247fac22f0aa233a598 (diff)
refactor(wip): experiment with rocksdbrocksdb
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/api.rs b/src/api.rs
index a35fba5..0d3f446 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -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")