diff options
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)?; |
