rabbitmq auto reconnect after connection lost

alpha
alex 2023-01-08 20:19:40 +01:00
parent eb1a18d03a
commit 7f249a5f0f
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ func ApiBroadcastMessagesHandling() {
// Re-set channel to receive notifications
// The library closes this channel after abnormal shutdown
channelClosedChannel = make(chan *amqp.Error, 1)
WebsocketClient.Channel.NotifyClose(channelClosedChannel)
ApiBroadcastClient.Channel.NotifyClose(channelClosedChannel)
case msg := <-msgs:
var receivedMessage structs.ReceivedMessage