Skip to content

Commit

Permalink
Get exchange name of rabbitmq from environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
guoqiangqi committed Oct 29, 2022
1 parent 46478b9 commit 2fa146d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
RMQ_USER = os.environ.get('RMQ_USER', 'event-platform')
RMQ_PASS = os.environ.get('RMQ_PASS', 'opensource_at_123')
QUEUE_NAME = os.environ.get('RMQ_QUEUE_NAME', 'gitee_data_processing')
EXCHANGE_NAME = 'delayed_exchange'
EXCHANGE_NAME = os.environ.get('EXCHANGE_NAME', 'delayed_exchange')

credentials = pika.PlainCredentials(RMQ_USER, RMQ_PASS)

Expand Down

0 comments on commit 2fa146d

Please sign in to comment.