Skip to content
Snippets Groups Projects
Unverified Commit 7b812f7c authored by Christopher Baines's avatar Christopher Baines
Browse files

substitute: Stop using call-with-cached-connection in fetch-narinfos.

Instead, just pass open-connection-for-uri/maybe to http-multiple-get. This
code should be functionaly similar to the previous code. The eventual aim of
this is to make the connection caching not mandatory in fetch-narinfos.

* guix/scripts/substitute.scm (fetch-narinfos): Remove use of
call-with-cached-connection.
parent f50b501a
No related branches found
No related tags found
No related merge requests found
......@@ -412,20 +412,14 @@ (define (do-fetch uri)
;; on the X.509 PKI. We can do it because we authenticate
;; narinfos, which provides a much stronger guarantee.
(let* ((requests (map (cut narinfo-request url <>) paths))
(result (call-with-cached-connection uri
(lambda (port)
(if port
(begin
(update-progress!)
(http-multiple-get uri
handle-narinfo-response '()
requests
#:open-connection
open-connection-for-uri/cached
#:verify-certificate? #f
#:port port))
'()))
open-connection-for-uri/maybe)))
(result (begin
(update-progress!)
(http-multiple-get uri
handle-narinfo-response '()
requests
#:open-connection
open-connection-for-uri/maybe
#:verify-certificate? #f))))
(newline (current-error-port))
result))
((file #f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment