Skip to content

Commit 33be2b9

Browse files
author
Sergio García Prado
committed
ISSUE #283
* Minor improvements.
1 parent f7aa9b6 commit 33be2b9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/plugins/minos-broker-rabbitmq/minos/plugins/rabbitmq/publisher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ async def _setup(self) -> None:
4848
self.channel = await self.connection.channel()
4949

5050
async def _destroy(self) -> None:
51+
await self.channel.close()
5152
await self.connection.close()
53+
await super()._destroy()
5254

5355
async def _send(self, message: BrokerMessage) -> None:
5456
await self.channel.default_exchange.publish(Message(message.avro_bytes), routing_key=message.topic)

packages/plugins/minos-broker-rabbitmq/minos/plugins/rabbitmq/subscriber.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ async def _setup(self) -> None:
7272
async def _destroy(self) -> None:
7373
await self._stop_task()
7474
await self.connection.close()
75+
await super()._destroy()
7576

7677
async def _start_task(self):
7778
if self._run_task is None:

0 commit comments

Comments
 (0)