Skip to content

Commit

Permalink
change timeout in redis to 12h
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefissure committed Jun 2, 2022
1 parent 046c17e commit bb1116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffxivbot/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def connect(self):
self.redis = redis.Redis(host=REDIST_URL, port=6379, decode_responses=True)
if self.redis:
bot_hash = f"bot_channel_name:{ws_self_id}"
self.redis.set(bot_hash, self.channel_name, ex=3600)
self.redis.set(bot_hash, self.channel_name, ex=3600*12)

bot = None
# with transaction.atomic():
Expand Down

0 comments on commit bb1116c

Please sign in to comment.