Skip to content

Commit

Permalink
Merge pull request #57 from AndrewLaptev/patch-1
Browse files Browse the repository at this point in the history
Missing MQTTConfig in __set_connetion_config
  • Loading branch information
sabuhish committed May 21, 2023
2 parents 7d67ad6 + c06bb71 commit 2f77614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastapi_mqtt/fastmqtt.py
Expand Up @@ -138,8 +138,8 @@ async def __set_connetion_config(self) -> None:
For more info: https://github.com/wialon/gmqtt#reconnects
"""
self.client.set_config({
"reconnect_retries":self.reconnect_retries,
"reconnect_delay": self.reconnect_delay})
"reconnect_retries":self.config.reconnect_retries,
"reconnect_delay": self.config.reconnect_delay})

def __on_connect(self, client, flags, rc, properties) -> None:
"""
Expand Down

0 comments on commit 2f77614

Please sign in to comment.