summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-01-07 21:00:23 +0000
committerChristopher Baines <mail@cbaines.net>2021-02-22 20:43:12 +0000
commit187e97096825d2bcceb144cead6eccc27385acd7 (patch)
treed1889155acfd799085bb1b2ee4e0d6e7cafea1e0 /gnu
parent8116cc66733134a8fb6f9117d4648288b83c8356 (diff)
substitute: Remove fetch-narinfos use open-connection-for-uri/maybe.
At least by default. Instead, make the open-connection procedure a parameter, and make the default guix:open-connection-for-uri. Do so similarly for lookup-narinfos and lookup-narinfos/diverse which work towards calling fetch-narinfos. This means this code can be moved to a different module, without having use/move the connection caching code. * guix/scripts/substitute.scm (fetch-narinfos): Add #:open-connection argument, and call http-multiple-get with it. (lookup-narinfos) Add #:open-connection argument, and call fetch-narinfos with it. (lookup-narinfos/diverse): Add #:open-connection argument, and call lookup-narinfos with it. (process-query): Call lookup-narinfos/diverse with #:open-connection open-connection-for-uri/maybe.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions