fix-push-image-rate
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
This commit is contained in:
parent
ded713010c
commit
f4ad68d5f2
@ -138,9 +138,7 @@ func (p dockerPusher) push(ctx context.Context, desc ocispec.Descriptor, ref str
|
|||||||
p.tracker.SetStatus(ref, Status{
|
p.tracker.SetStatus(ref, Status{
|
||||||
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?
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user