Cleanup code comments and lint fixes

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2022-11-14 16:21:14 -08:00
parent f1598cf5e8
commit fc2754204f
9 changed files with 18 additions and 34 deletions

View File

@@ -113,7 +113,7 @@ func SendStream(ctx context.Context, r io.Reader, stream streaming.Stream) {
b := (*buf)[:max]
n, err := r.Read(b)
if err != nil {
if err != io.EOF {
if !errors.Is(err, io.EOF) {
log.G(ctx).WithError(err).Errorf("failed to read stream source")
// TODO: Send error message on stream before close to allow remote side to return error
}