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

@@ -18,6 +18,7 @@ package proxy
import (
"context"
"errors"
"io"
transferapi "github.com/containerd/containerd/api/services/transfer/v1"
@@ -61,7 +62,7 @@ func (p *proxyTransferer) Transfer(ctx context.Context, src interface{}, dst int
for {
a, err := stream.Recv()
if err != nil {
if err != io.EOF {
if !errors.Is(err, io.EOF) {
log.G(ctx).WithError(err).Error("progress stream failed to recv")
}
return