Skip to content

Commit 20c033c

Browse files
committed
Comment to clarify nil notification
1 parent 2c92a45 commit 20c033c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extension/amqp/publisher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func NewNotificationPublisher(
6060
func (p *NotificationPublisher) Publish(ctx context.Context, notification *sql.ProjectionNotification) error {
6161
reconnectInterval := p.minReconnectInterval
6262
// Ignore nil notifications since this is not supported
63+
// Skipping as we may receive a nil notification from dispatcher for the first time
6364
if notification == nil {
6465
p.logger.Warn("unable to handle nil notification, skipping", nil)
6566
return nil

0 commit comments

Comments
 (0)