Skip to content

Commit

Permalink
Fix: condition flow
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Vrba <[email protected]>
  • Loading branch information
Jiri Vrba committed Mar 4, 2024
1 parent b443030 commit 43f6e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/reg/adapter/dockerhub/adapter.go
Original file line number Diff line number Diff line change
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 43f6e95

Please sign in to comment.