Skip to content

Commit 41dfd62

Browse files
committed
fix: Removed finally block releasing client in ConnectionPool.connect() method
1 parent 76ed688 commit 41dfd62

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/database/ConnectionPool.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ export class ConnectionPool {
3636
console.error('Unexpected error connecting to the database:', error);
3737
return false;
3838
}
39-
} finally {
40-
if (client) {
41-
client.release();
42-
}
4339
}
4440
}
4541
private async createDatabase(): Promise<void> {

0 commit comments

Comments
 (0)