Fix issues with with-resource-from-pool

This commit is contained in:
Christopher Baines 2023-07-26 10:11:00 +01:00
parent abe50b0443
commit 1c75394187

View file

@ -620,11 +620,11 @@
package-derivations))))))
(else
(letpar& ((systems
(with-resource-from-pool (connection-pool) conn
list-systems))
(call-with-resource-from-pool (connection-pool)
list-systems))
(targets
(with-resource-from-pool (connection-pool) conn
valid-targets)))
(call-with-resource-from-pool (connection-pool)
valid-targets)))
(render-html
#:sxml (view-branch-package-derivations
parsed-query-parameters
@ -667,9 +667,8 @@
package-name
output-name)))
(build-server-urls
(call-with-resource-from-pool
(connection-pool)
select-build-server-urls-by-id)))
(call-with-resource-from-pool (connection-pool)
select-build-server-urls-by-id)))
(case (most-appropriate-mime-type
'(application/json text/html)
mime-types)
@ -696,11 +695,11 @@
package-outputs))))))
(else
(letpar& ((systems
(with-resource-from-pool (connection-pool) conn
list-systems))
(call-with-resource-from-pool (connection-pool)
list-systems))
(targets
(with-resource-from-pool (connection-pool) conn
valid-targets)))
(call-with-resource-from-pool (connection-pool)
valid-targets)))
(render-html
#:sxml (view-branch-package-outputs
parsed-query-parameters