Skip to content

Commit 6e28468

Browse files
endothermicdevchrisguida
authored andcommitted
historian: declare rabbitmq exchange
Avoids a potential crash when serving gossip on greenlight.
1 parent aa77a05 commit 6e28468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

archived/historian/historian.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def rabbitmq_connect(self):
230230
params = pika.URLParameters(self.RABBITMQ_URL)
231231
self.connection = pika.BlockingConnection(params) # default, localhost
232232
self.channel = self.connection.channel()
233+
self.channel.exchange_declare(exchange='router.gossip', exchange_type='fanout')
233234
plugin.log(f"message queue connected to {params.host}:{params.port}")
234235

235236
def run(self):

0 commit comments

Comments
 (0)