Skip to content

Commit 56a5ca9

Browse files
fix(blog): define idx in one-wake-per-burst requeue snippet
Git-Session-Id: d54f
1 parent 0314044 commit 56a5ca9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎_posts/2026-09-29-one-wake-per-burst.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ like this:
3434

3535
```python
3636
pending_watch = take_queued_watch_events(logdir)
37-
for watch_id, text in pending_watch:
37+
for idx, (watch_id, text) in enumerate(pending_watch):
3838
delivered = request_watch_wake(conversation_id, Message("system", f"Watch {watch_id} fired: {text}"))
3939
if not delivered:
4040
# still busy: put this one and every later event back

0 commit comments

Comments
 (0)