Rework receiver restart. (#4202)

* Rework receiver restart.

- Protect against concurrent restarts
- Clean up and consolidate code around restarts
- Use `RestartStream` of buffer rather than creating new buffers.

* fix test
This commit is contained in:
Raja Subramanian
2025-12-27 17:17:16 +05:30
committed by GitHub
parent bb00c86489
commit b91cd2e4ea
5 changed files with 250 additions and 105 deletions

View File

@@ -128,7 +128,6 @@ func (oq *opsQueueBase[T]) Enqueue(op T) {
select {
case oq.wake <- struct{}{}:
default:
oq.params.Logger.Debugw("could not wake ops queue", "name", oq.params.Name)
}
}
}