Skip to content

Commit

Permalink
fix: connection release on mesage read (#19)
Browse files Browse the repository at this point in the history
This reverts commit 8a51dbc.
  • Loading branch information
nimrodkor authored Oct 20, 2024
1 parent 8a51dbc commit a1c1e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class Queue {
const query = readQuery(this.name, vt)
const conn = await this.pool.connect()
const result = await conn.query(query)
conn.release()
return parseDbMessage<T>(result.rows[0])
}

Expand Down

0 comments on commit a1c1e81

Please sign in to comment.