Skip to content

Commit

Permalink
Fix(mqtt): Reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
ahilloffis committed Feb 10, 2025
1 parent c576f24 commit 4b085a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mango/container/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def on_discon(client, userdata, disconnect_flags, reason_code, properties):
logger.debug("Successfully disconnected from broker.")

self.mqtt_client.on_disconnect = on_discon

def process_sub_request(mid):
self.pending_sub_request[mid].set_result(0)

Expand Down Expand Up @@ -440,9 +440,9 @@ async def subscribe_for_agent(self, *, aid: str, topic: str, qos: int = 2) -> bo
result, mid = self.mqtt_client.subscribe(topic, qos=qos)

if result != paho.MQTT_ERR_SUCCESS:
future.set_result(False)
future.set_result(False)

Check warning on line 443 in mango/container/mqtt.py

View check run for this annotation

Codecov / codecov/patch

mango/container/mqtt.py#L443

Added line #L443 was not covered by tests
return False

self.pending_sub_request[mid] = future

await self.pending_sub_request[mid]
Expand Down

0 comments on commit 4b085a8

Please sign in to comment.