rename the "queues" configuration section to "topic", to indicate it is only relevant for topic exchanges
This commit is contained in:
parent
91e6572e89
commit
bca4ad5e76
2 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ name = koji.events
|
|||
type = topic
|
||||
durable = true
|
||||
|
||||
[queues]
|
||||
[topic]
|
||||
prefix = koji.event
|
||||
|
||||
[format]
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ def get_session():
|
|||
|
||||
def get_routing_key(cbtype, *args, **kws):
|
||||
global config
|
||||
key = [config.get('queues', 'prefix'), cbtype]
|
||||
key = [config.get('topic', 'prefix'), cbtype]
|
||||
|
||||
if cbtype in ('prePackageListChange', 'postPackageListChange'):
|
||||
key.append(kws['tag']['name'])
|
||||
key.append(kws['package']['name'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue