fix: add prefix to exchanges
This commit is contained in:
parent
0da01cf6b7
commit
919d1d0c11
|
@ -51,10 +51,11 @@ func newAMQPConfig(generateQueueName amqp.QueueNameGenerator) (amqp.Config, erro
|
|||
}
|
||||
|
||||
cfg := amqp.NewDurablePubSubConfig(appCfg.URI, generateQueueName)
|
||||
|
||||
cfg.Consume.NoRequeueOnNack = true
|
||||
cfg.Consume.Qos.PrefetchCount = appCfg.PrefetchCount
|
||||
|
||||
cfg.Exchange.GenerateName = func(topic string) string {
|
||||
return "twhelp_" + topic
|
||||
}
|
||||
return cfg, nil
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue
Block a user