From 78c3d9f61e2087cd09fdd36f002f910a4394c7f3 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 22 Aug 2022 16:42:34 +0200 Subject: Remove unused pool --- server/src/main.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'server') diff --git a/server/src/main.rs b/server/src/main.rs index 17ac707..3b080eb 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,7 +1,6 @@ mod db; mod errors; mod logger; -use sqlx::postgres::PgPool; use axum::{ http::{header, Request}, @@ -31,7 +30,6 @@ async fn main() { async fn create_app() -> Router { logger::setup(); let _ = db::setup().await; - let pool = unsafe { db::get_client() }; Router::new() .route("/", get(hej)) -- cgit v1.2.3-18-g5258