Skip to content

Commit

Permalink
Fix condition flow
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Vrba <jiri.vrba@firma.seznam.cz>
  • Loading branch information
Jiri Vrba committed Mar 4, 2024
1 parent b443030 commit de3a9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/reg/adapter/dockerhub/adapter.go
Expand Up @@ -152,8 +152,8 @@ func (a *adapter) limitAwareDo(method string, path string, body io.Reader) (*htt
time.Sleep(dur)
log.Info("Sleep finished, resuming operation")
}
return clientResp, clientErr
}
return clientResp, clientErr
}
var dur = time.Duration(0)
seconds, err := strconv.ParseInt(clientResp.Header.Get("retry-after"), 10, 64)
Expand Down

0 comments on commit de3a9c4

Please sign in to comment.