Skip to content

Commit 762d189

Browse files
committed
Restore the AMQP queue if needed after a connection failure.
Closes #503.
1 parent 4e7fdb3 commit 762d189

File tree

1 file changed

+5
-0
lines changed
  • internal/backend/gateway/amqp

1 file changed

+5
-0
lines changed

internal/backend/gateway/amqp/amqp.go

+5
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ func (b *Backend) eventLoop() {
277277
// (in the loop).
278278
log.WithError(err).Error("gateway/amqp: event loop error")
279279
time.Sleep(time.Second)
280+
281+
// Restore the queue if needed.
282+
if err := b.setupQueue(); err != nil {
283+
log.WithError(err).Error("gateway/amqp: setup queue error")
284+
}
280285
}
281286
}
282287
}

0 commit comments

Comments
 (0)