• Michael Schurter's avatar
    api: never return EOF from Logs error chan · 41f05dc2
    Michael Schurter authored
    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.
    41f05dc2