mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix typo for download and upload retry messages
Signed-off-by: Jay <jay@imjching.com>
This commit is contained in:
parent
b7aae84b5f
commit
f8d14bd4c6
2 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ func (ldm *LayerDownloadManager) makeDownloadFunc(descriptor DownloadDescriptor,
|
||||||
|
|
||||||
selectLoop:
|
selectLoop:
|
||||||
for {
|
for {
|
||||||
progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d seconds", delay)
|
progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d second%s", delay, (map[bool]string{true: "s"})[delay != 1])
|
||||||
select {
|
select {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
delay--
|
delay--
|
||||||
|
|
|
@ -141,7 +141,7 @@ func (lum *LayerUploadManager) makeUploadFunc(descriptor UploadDescriptor) DoFun
|
||||||
|
|
||||||
selectLoop:
|
selectLoop:
|
||||||
for {
|
for {
|
||||||
progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d seconds", delay)
|
progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d second%s", delay, (map[bool]string{true: "s"})[delay != 1])
|
||||||
select {
|
select {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
delay--
|
delay--
|
||||||
|
|
Loading…
Reference in a new issue