substitute: Use the same port for multiple request batches.
authorChristopher Baines <mail@cbaines.net>
Mon, 2 Mar 2020 20:13:39 +0000 (20:13 +0000)
committerChristopher Baines <mail@cbaines.net>
Sun, 26 Apr 2020 18:37:22 +0000 (19:37 +0100)
In http-multiple-get.

* guix/scripts/substitute.scm (http-multiple-get): Switch port to p in one
occurrence.

guix/scripts/substitute.scm

index 95b47a7..2cb240c 100755 (executable)
@@ -538,7 +538,7 @@ initial connection on which HTTP requests are sent."
              (()
               (reverse result))
              (remainder
-              (connect port remainder result))))
+              (connect p remainder result))))
           ((head tail ...)
            (let* ((resp   (read-response p))
                   (body   (response-body-port resp))