summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index e374834..fa7c499 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -28,9 +28,10 @@ impl Args {
sqlx::migrate!().run(&pool).await?;
+ let app = App::from(pool).await?;
let app = routers()
.route_layer(middleware::from_fn(clock::middleware))
- .with_state(App::from(pool));
+ .with_state(app);
let listener = self.listener().await?;
let started_msg = started_msg(&listener)?;