Skip to content

Commit

Permalink
[-] fix pool after release handler to avoid session termination causi…
Browse files Browse the repository at this point in the history
…ng side effects
  • Loading branch information
pashagolub committed Nov 15, 2023
1 parent d136402 commit 33b93ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pgengine/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (pge *PgEngine) getPgxConnConfig() *pgxpool.Config {
if _, err = pgconn.Exec(context.Background(), "DISCARD ALL"); err == nil {
_, err = pgconn.Exec(context.Background(), "LISTEN "+quoteIdent(pge.ClientName))
}
return err != nil
return err == nil
}

if !pge.Start.Debug { //will handle notification in HandleNotifications directly
Expand Down

0 comments on commit 33b93ba

Please sign in to comment.