Merge pull request #8694 from yankay/fix-push-image-rate

Fix ctr push image can't show right rate
This commit is contained in:
Derek McGowan 2023-08-22 16:39:35 -07:00 committed by GitHub
commit 1aa710d0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -139,8 +139,6 @@ func (p dockerPusher) push(ctx context.Context, desc ocispec.Descriptor, ref str
Committed: true, Committed: true,
Status: content.Status{ Status: content.Status{
Ref: ref, Ref: ref,
Total: desc.Size,
Offset: desc.Size,
// TODO: Set updated time? // TODO: Set updated time?
}, },
}) })

View File

@ -283,10 +283,6 @@ func SkipNonDistributableBlobs(f images.HandlerFunc) images.HandlerFunc {
return nil, images.ErrSkipDesc return nil, images.ErrSkipDesc
} }
if images.IsLayerType(desc.MediaType) {
return nil, nil
}
children, err := f(ctx, desc) children, err := f(ctx, desc)
if err != nil { if err != nil {
return nil, err return nil, err