Closed fxamacker closed 2 years ago
@turbolent reported a problem in CI.
FastCommit() will exit if a goroutine returns an error. This early exit triggers defer close(results) which closes the channel. The first of any remaining goroutine to send over the closed channel will cause a "send on closed channel" panic.
FastCommit()
defer close(results)
channel
Problem
@turbolent reported a problem in CI.
FastCommit()
will exit if a goroutine returns an error. This early exit triggersdefer close(results)
which closes thechannel
. The first of any remaining goroutine to send over the closed channel will cause a "send on closed channel" panic.