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

Method close_channel

eventhandlers/ConsumersCreator.py:85–91  ·  view source on GitHub ↗

Invoke this command to close the channel with RabbitMQ by sending the Channel.Close RPC command.

(self)

Source from the content-addressed store, hash-verified

83 self.close_connection()
84
85 def close_channel(self):
86 """Invoke this command to close the channel with RabbitMQ by sending
87 the Channel.Close RPC command.
88 """
89 if self.channel is not None:
90 logger.info('Closing the channel')
91 self.channel.close()
92
93 def close_connection(self):
94 """This method closes the connection to RabbitMQ."""

Callers 1

stopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected