diff --git a/pkg/cri/server/images/image_pull.go b/pkg/cri/server/images/image_pull.go index cb9db2738..840015052 100644 --- a/pkg/cri/server/images/image_pull.go +++ b/pkg/cri/server/images/image_pull.go @@ -555,9 +555,6 @@ func newTransport() *http.Transport { //} const ( - // minPullProgressReportInternal is used to prevent the reporter from - // eating more CPU resources - minPullProgressReportInternal = 5 * time.Second // defaultPullProgressReportInterval represents that how often the // reporter checks that pull progress. defaultPullProgressReportInterval = 10 * time.Second @@ -605,10 +602,6 @@ func (reporter *pullProgressReporter) start(ctx context.Context) { // check progress more frequently if timeout < default internal if reporter.timeout < reportInterval { reportInterval = reporter.timeout / 2 - - if reportInterval < minPullProgressReportInternal { - reportInterval = minPullProgressReportInternal - } } var ticker = time.NewTicker(reportInterval)