Skip to content

Commit

Permalink
avoid reduplicated connection
Browse files Browse the repository at this point in the history
  • Loading branch information
4t145 committed Nov 19, 2024
1 parent 470d88e commit 825b0d5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/middlewares/event/src/serv/event_auth_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
}

Expand Down

0 comments on commit 825b0d5

Please sign in to comment.