Skip to content

fix(relayer): handle nil rabbitmq close notifications in subscribe - #22017

Open
questfever wants to merge 1 commit into
taikoxyz:mainfrom
questfever:main
Open

fix(relayer): handle nil rabbitmq close notifications in subscribe#22017
questfever wants to merge 1 commit into
taikoxyz:mainfrom
questfever:main

Conversation

@questfever

Copy link
Copy Markdown

Summary

Handle nil RabbitMQ close notifications in Subscribe.

amqp091-go closes NotifyClose channels on graceful shutdown without sending an error first. Reading from the closed channel can therefore return nil, but Subscribe still dereferenced the value with err.Error() for both connection and channel close notifications.

This mirrors the nil-safe handling that was added to Notify in #15861, and applies the same protection to the remaining Subscribe paths.

Verification

  • go test ./pkg/queue/rabbitmq
  • go test ./pkg/queue/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant