79331402

Date: 2025-01-05 19:31:44
Score: 1
Natty:
Report link

As suspected in Finn Bear's comment, the writeNext method was actually blocking for minutes and then writing hundreds of thousands of messages in a second.

Extracting the message sending into a separate Goroutine and atomically incrementing the messagesSinceLastReport variable solved the issue for me.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: vstollen