mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
download: Comment on lack of progress report with chunked encoding.
* guix/build/download.scm (progress-proc): Add comment.
This commit is contained in:
parent
9fbe6f1920
commit
c9727aac40
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ (define* (progress-proc file size #:optional (log-port (current-output-port)))
|
|||
"Return a procedure to show the progress of FILE's download, which is
|
||||
SIZE byte long. The returned procedure is suitable for use as an
|
||||
argument to `dump-port'. The progress report is written to LOG-PORT."
|
||||
;; XXX: Because of <http://bugs.gnu.org/19939> this procedure is often not
|
||||
;; called as frequently as we'd like too; this is especially bad with Nginx
|
||||
;; on hydra.gnu.org, which returns whole nars as a single chunk.
|
||||
(let ((start-time #f))
|
||||
(let-syntax ((with-elapsed-time
|
||||
(syntax-rules ()
|
||||
|
|
Loading…
Reference in a new issue