remove duplicate RabbitMQ listen topics
This commit is contained in:
parent
d828467d25
commit
06228c58f3
@ -208,6 +208,9 @@ func ProcessRabbitMQEvents(listenDefs ListenDefinitions, orgs []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
slices.Sort(topics)
|
||||
topics = slices.Compact(topics)
|
||||
|
||||
ch := connectToRabbitMQ(log.Default(), *server, topics)
|
||||
|
||||
for {
|
||||
|
Loading…
Reference in New Issue
Block a user