rabbitmq auto reconnect after connection lost
parent
eb1a18d03a
commit
7f249a5f0f
|
@ -188,7 +188,7 @@ func ApiBroadcastMessagesHandling() {
|
||||||
// Re-set channel to receive notifications
|
// Re-set channel to receive notifications
|
||||||
// The library closes this channel after abnormal shutdown
|
// The library closes this channel after abnormal shutdown
|
||||||
channelClosedChannel = make(chan *amqp.Error, 1)
|
channelClosedChannel = make(chan *amqp.Error, 1)
|
||||||
WebsocketClient.Channel.NotifyClose(channelClosedChannel)
|
ApiBroadcastClient.Channel.NotifyClose(channelClosedChannel)
|
||||||
|
|
||||||
case msg := <-msgs:
|
case msg := <-msgs:
|
||||||
var receivedMessage structs.ReceivedMessage
|
var receivedMessage structs.ReceivedMessage
|
||||||
|
|
Loading…
Reference in New Issue