Skip to content

Commit 0047c70

Browse files
committed
fixup! chore: add logs to pq notification dialer
1 parent ab040dc commit 0047c70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/database/pubsub/pubsub.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ func (p *PGPubsub) startListener(ctx context.Context, connectURL string) error {
403403
dialer = logDialer{
404404
logCtx: ctx,
405405
logger: p.logger,
406-
d: net.Dialer{},
406+
// pq.defaultDialer uses a zero net.Dialer as well.
407+
d: net.Dialer{},
407408
}
408409
)
409410
p.pgListener = pq.NewDialListener(dialer, connectURL, time.Second, time.Minute, func(t pq.ListenerEventType, err error) {

0 commit comments

Comments
 (0)