Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Nov 15, 2023
1 parent 3c4d54a commit b55af11
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 pgconn.DeallocateAll(context.Background()) != nil {
return false // destroy the connection in case of error
}
_, err = pgconn.Exec(context.Background(), "DISCARD ALL")
if _, err = pgconn.Exec(context.Background(), "DISCARD ALL"); err == nil {
_, err = pgconn.Exec(context.Background(), "LISTEN "+quoteIdent(pge.ClientName))
}
return err == nil
Expand Down

0 comments on commit b55af11

Please sign in to comment.