MCPcopy Create free account
hub / github.com/diffgram/diffgram / close_connection

Method close_connection

eventhandlers/ConsumersCreator.py:93–97  ·  view source on GitHub ↗

This method closes the connection to RabbitMQ.

(self)

Source from the content-addressed store, hash-verified

91 self.channel.close()
92
93 def close_connection(self):
94 """This method closes the connection to RabbitMQ."""
95 if self.connection is not None:
96 logger.info('Closing connection')
97 self.connection.close()
98
99 def on_connection_closed(self, _unused_connection, reason):
100 """This method is invoked by pika when the connection to RabbitMQ is

Callers 1

stopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected