Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
fedimg: Modify setup according to dev, prod, and staging consumers
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Chowdhury <[email protected]>
  • Loading branch information
sayanchowdhury committed Jul 12, 2017
1 parent 897e55d commit 9528456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fedmsg.d/fedimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
NUM_ATOMIC_THREADS = 2
NUM_PORTS = 2 * ((NUM_BASE_THREADS + NUM_ATOMIC_THREADS) + 1)

config = dict(
fedimgconsumer=True,
endpoints={
config = {
'fedimgconsumer.dev.enabled': True,
'endpoints': {
"fedimg.%s" % hostname: [
"tcp://127.0.0.1:60%0.2i" % (i)
for i in range(NUM_PORTS)
],
},
)
}
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
packages=find_packages(),
entry_points="""
[moksha.consumer]
fedimgconsumer = fedimg.consumers:FedimgConsumer
fedimgconsumer.prod = fedimg.consumers:FedimgConsumer
fedimgconsumer.stg = fedimg.consumers:FedimgStagingConsumer
fedimgconsumer.dev = fedimg.consumers:FedimgDevConsumer
""",
)

0 comments on commit 9528456

Please sign in to comment.