Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Use a direct exchange instead of topic
Browse files Browse the repository at this point in the history
We do exact matching between routing key and queue, so a topic exchange is not
required.
  • Loading branch information
priteau committed Jan 20, 2012
1 parent 5f25c30 commit 18c1e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashi/__init__.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, name, uri, exchange, durable=False, auto_delete=True, seriali
self._conn = BrokerConnection(uri) self._conn = BrokerConnection(uri)
self._name = name self._name = name
self._exchange_name = exchange self._exchange_name = exchange
self._exchange = Exchange(name=exchange, type='topic', self._exchange = Exchange(name=exchange, type='direct',
durable=durable, auto_delete=auto_delete) durable=durable, auto_delete=auto_delete)


# visible attributes # visible attributes
Expand Down

0 comments on commit 18c1e67

Please sign in to comment.