Steve Yegge
e2bb4311f1
Improve mutation channel robustness
- Add event type constants (MutationCreate, MutationUpdate, MutationDelete, MutationComment)
- Make buffer size configurable via BEADS_MUTATION_BUFFER (default 512, up from 100)
- Add defensive closed-channel handling in event loop consumer
- Add 1s dropped-events ticker (down from 60s) for faster recovery
- Verify mutationChan is never closed (prevents panic)
Oracle review findings addressed:
- Eliminates panic risk from send-on-closed-channel
- Reduces worst-case recovery latency from 60s to 1s
- Increases buffer capacity for better burst handling
- Type-safe event constants prevent string typos
Related: bd-36320a04, bd-1f4086c5
2025-10-31 19:12:02 -07:00
..
2025-10-30 19:20:50 -07:00
2025-10-28 10:33:19 -07:00
2025-10-28 10:33:19 -07:00
2025-10-28 10:33:19 -07:00
2025-10-30 19:20:50 -07:00
2025-10-26 22:31:24 -07:00
2025-10-27 23:14:38 -07:00
2025-10-31 19:12:02 -07:00
2025-10-31 01:07:42 -07:00
2025-10-31 19:12:02 -07:00
2025-10-31 19:12:02 -07:00
2025-10-28 10:33:19 -07:00
2025-10-30 19:20:50 -07:00
2025-10-27 21:14:34 -07:00
2025-10-26 22:31:24 -07:00
2025-10-26 22:31:24 -07:00