Skip to content

Commit

Permalink
Revert "tx.Conn.Close() for safety"
Browse files Browse the repository at this point in the history
This reverts commit 7b707b0.
  • Loading branch information
Amogh-Bharadwaj committed Feb 15, 2024
1 parent 7b707b0 commit c8e89a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flow/connectors/postgres/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func (c *PostgresConnector) CheckPublicationPermission(ctx context.Context, tabl
if err != nil {
return fmt.Errorf("error starting transaction: %w", err)
}
defer tx.Conn().Close(ctx)
defer func() {
err := tx.Rollback(ctx)
if err != nil && err != pgx.ErrTxClosed {
Expand Down

0 comments on commit c8e89a4

Please sign in to comment.