We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8b72fa + aaaae02 commit e4063caCopy full SHA for e4063ca
core/data/impl/nodeimpl.py
@@ -668,8 +668,8 @@ def has_timeout(row: dict, timeout: int):
668
SELECT c.master, c.version, c.update_pending, n.node
669
FROM cluster c LEFT OUTER JOIN nodes n
670
ON c.guild_id = n.guild_id AND c.master = n.node
671
- WHERE c.guild_id = %s
672
AND n.last_seen > (NOW() AT TIME ZONE 'UTC' - interval '1 minute')
+ WHERE c.guild_id = %s
673
""", (self.guild_id, ))
674
cluster = await cursor.fetchone()
675
# No master there? we take it!
0 commit comments