Skip to content

Commit

Permalink
chore: decrease send stand by status update ticker time
Browse files Browse the repository at this point in the history
  • Loading branch information
3n0ugh committed Sep 11, 2024
1 parent 115f690 commit 4becbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pq/replication/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *stream) sink(ctx context.Context) {
logger.Info("postgres message sink started")

for {
msgCtx, cancel := context.WithDeadline(context.Background(), time.Now().Add(time.Second*5))
msgCtx, cancel := context.WithDeadline(context.Background(), time.Now().Add(time.Millisecond*500))
rawMsg, err := s.conn.ReceiveMessage(msgCtx)
cancel()
if err != nil {
Expand Down

0 comments on commit 4becbb1

Please sign in to comment.