Skip to content

Commit

Permalink
pg HandleSlotInfo: don't use c.conn for getSlotInfo (#1229)
Browse files Browse the repository at this point in the history
This raced with PullRecords
  • Loading branch information
serprex authored Feb 8, 2024
1 parent 08b8cf9 commit 74264f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ func (c *PostgresConnector) HandleSlotInfo(
}
defer conn.Close(ctx)

slotInfo, err := c.GetSlotInfo(slotName)
slotInfo, err := getSlotInfo(ctx, conn, slotName, c.config.Database)
if err != nil {
slog.WarnContext(ctx, "warning: failed to get slot info", slog.Any("error", err))
return err
Expand Down

0 comments on commit 74264f2

Please sign in to comment.