You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this project as a database connector for opsdroid. Today I was working on a bug fix and didn't started my redis server, when I ran opsdroid I have noticed that the auto_connect was being triggered even though the flag was set to False.
The connect method is implemented like this:
asyncdefconnect(self):
"""Connect to the database. This method will connect to a Redis database. By default it will connect to Redis on localhost on port 6379 """self.client=awaitasyncio_redis.Connection.create(
host=self.host,
port=self.port,
db=self.database,
auto_reconnect=self.reconnect,
password=self.password,
)
And self.reconnect is set up like self.reconnect = self.config.get("reconnect", False) so I would expect the connection to not reconnect when the bool is set to False, but it doesn't seem to be happening.
I have also tried to set auto_reconnect to False directly but nothing changed.
Not sure if anyone else has the same issue or if something on my end but decided to report it anyway 😄 👍
The text was updated successfully, but these errors were encountered:
Hello,
I am using this project as a database connector for opsdroid. Today I was working on a bug fix and didn't started my redis server, when I ran opsdroid I have noticed that the auto_connect was being triggered even though the flag was set to False.
The connect method is implemented like this:
And
self.reconnect
is set up likeself.reconnect = self.config.get("reconnect", False)
so I would expect the connection to not reconnect when the bool is set to False, but it doesn't seem to be happening.I have also tried to set auto_reconnect to False directly but nothing changed.
Not sure if anyone else has the same issue or if something on my end but decided to report it anyway 😄 👍
The text was updated successfully, but these errors were encountered: