c8d/pull: Don't emit Downloading
with 0 progress
To align with the graphdrivers behavior and don't send unnecessary progress messages. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
ff5f780f2b
commit
14df52b709
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ func (p pullProgress) UpdateProgress(ctx context.Context, ongoing *jobs, out pro
|
|||
}
|
||||
key := remotes.MakeRefKey(ctx, j)
|
||||
if info, ok := pulling[key]; ok {
|
||||
if info.Offset == 0 {
|
||||
continue
|
||||
}
|
||||
out.WriteProgress(progress.Progress{
|
||||
ID: stringid.TruncateID(j.Digest.Encoded()),
|
||||
Action: "Downloading",
|
||||
|
|
Loading…
Reference in a new issue