Permalink
Browse files

Use a direct exchange instead of topic

We do exact matching between routing key and queue, so a topic exchange is not
required.
  • Loading branch information...
1 parent 5f25c30 commit 18c1e67dcc89921afe12917c46999fba40e0c602 @priteau priteau committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dashi/__init__.py
View
@@ -24,7 +24,7 @@ def __init__(self, name, uri, exchange, durable=False, auto_delete=True, seriali
self._conn = BrokerConnection(uri)
self._name = name
self._exchange_name = exchange
- self._exchange = Exchange(name=exchange, type='topic',
+ self._exchange = Exchange(name=exchange, type='direct',
durable=durable, auto_delete=auto_delete)
# visible attributes

0 comments on commit 18c1e67

Please sign in to comment.