Skip to content

Commit c8db98a

Browse files
committed
Race condition with pre-existing rows.
1 parent c9b3780 commit c8db98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async def subscribe(self):
161161
WHERE id IN (SELECT id FROM to_delete)
162162
RETURNING id
163163
""").format(table=sql.Identifier(self.name)), (self.node.guild_id, self.node.name)):
164-
self.read_queue.put_nowait(row['id'])
164+
self.read_queue.put_nowait(row[0])
165165
await cursor.execute(sql.SQL("LISTEN {table}").format(table=sql.Identifier(self.name)))
166166
gen = conn.notifies()
167167
async for n in gen:

0 commit comments

Comments
 (0)