Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: never return EOF from Logs error chan
Closing the frames chan is the only race-free way to signal to receivers that all frames have been sent and no errors have occurred. If EOF is sent on error chan receivers may not receive the last frame (or frames since the chan is buffered) before receiving the error. Closing frames is the idiomatic way of signaling there is no more data to be read from a chan.
- Loading branch information