Fix green reserve (#7951)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-02-06 23:52:26 +07:00
committed by GitHub
parent 931ed82403
commit d39d4ea16c
10 changed files with 175 additions and 12 deletions
+1 -2
View File
@@ -83,8 +83,7 @@ class GreenClient implements DBClient {
release (): void {}
async reserve (): Promise<DBClient> {
// We do reserve of connection, if we need it.
return createGreenDBClient(this.url, this.token, await this.connection.reserve(), this.decoder)
return createDBClient(await this.connection.reserve())
}
raw (): postgres.Sql {