Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Oct 12, 2023
1 parent c7618c9 commit 22ddf67
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ func (e *Downloader) downloadFile(ctx context.Context, artifactName, filename, f
}
}

plo := newLoggingProgressObserver(e.log, e.config.HTTPTransportSettings.Timeout)
lpObs := newLoggingProgressObserver(e.log, e.config.HTTPTransportSettings.Timeout)
reportCtx, reportCancel := context.WithCancel(ctx)
dp := newDownloadProgressReporter(sourceURI, e.config.HTTPTransportSettings.Timeout, fileSize, plo)
dp := newDownloadProgressReporter(sourceURI, e.config.HTTPTransportSettings.Timeout, fileSize, lpObs)
dp.Report(reportCtx)
_, err = io.Copy(destinationFile, io.TeeReader(resp.Body, dp))
if err != nil {
Expand Down

0 comments on commit 22ddf67

Please sign in to comment.