Closed lobkovilya closed 1 day ago
Error channel had capacity 0, that's why every time when we write to it like:
select { case errChan <- err: default: log.Error(err, "failed to write error to closed channel") }
we always go to the default section.
default
Update channel capacity to be 1.
None
I checked more carefully, we don't need errCh in callbacks at all, should be simpler now. It should be clear now that capacity 1 is enough
errCh
Motivation
Error channel had capacity 0, that's why every time when we write to it like:
we always go to the
default
section.Implementation information
Update channel capacity to be 1.
Supporting documentation
None