From 825b0d5fce09944407213497aa81f22083dfe868 Mon Sep 17 00:00:00 2001 From: 4t145 Date: Tue, 19 Nov 2024 17:31:28 +0800 Subject: [PATCH] avoid reduplicated connection --- backend/middlewares/event/src/serv/event_auth_serv.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/middlewares/event/src/serv/event_auth_serv.rs b/backend/middlewares/event/src/serv/event_auth_serv.rs index f3064f67..68ee942d 100644 --- a/backend/middlewares/event/src/serv/event_auth_serv.rs +++ b/backend/middlewares/event/src/serv/event_auth_serv.rs @@ -27,8 +27,6 @@ impl EventAuthServ { if model.is_none() { let model: Model = Model::from_topic_auth(auth); let model: ActiveModel = model.into_active_model(); - let conn = funs.reldb().conn(); - let raw_conn = conn.raw_conn(); model.insert(raw_conn).await?; }