Fix issues with with-resource-from-pool
This commit is contained in:
parent
abe50b0443
commit
1c75394187
1 changed files with 10 additions and 11 deletions
|
|
@ -620,11 +620,11 @@
|
||||||
package-derivations))))))
|
package-derivations))))))
|
||||||
(else
|
(else
|
||||||
(letpar& ((systems
|
(letpar& ((systems
|
||||||
(with-resource-from-pool (connection-pool) conn
|
(call-with-resource-from-pool (connection-pool)
|
||||||
list-systems))
|
list-systems))
|
||||||
(targets
|
(targets
|
||||||
(with-resource-from-pool (connection-pool) conn
|
(call-with-resource-from-pool (connection-pool)
|
||||||
valid-targets)))
|
valid-targets)))
|
||||||
(render-html
|
(render-html
|
||||||
#:sxml (view-branch-package-derivations
|
#:sxml (view-branch-package-derivations
|
||||||
parsed-query-parameters
|
parsed-query-parameters
|
||||||
|
|
@ -667,9 +667,8 @@
|
||||||
package-name
|
package-name
|
||||||
output-name)))
|
output-name)))
|
||||||
(build-server-urls
|
(build-server-urls
|
||||||
(call-with-resource-from-pool
|
(call-with-resource-from-pool (connection-pool)
|
||||||
(connection-pool)
|
select-build-server-urls-by-id)))
|
||||||
select-build-server-urls-by-id)))
|
|
||||||
(case (most-appropriate-mime-type
|
(case (most-appropriate-mime-type
|
||||||
'(application/json text/html)
|
'(application/json text/html)
|
||||||
mime-types)
|
mime-types)
|
||||||
|
|
@ -696,11 +695,11 @@
|
||||||
package-outputs))))))
|
package-outputs))))))
|
||||||
(else
|
(else
|
||||||
(letpar& ((systems
|
(letpar& ((systems
|
||||||
(with-resource-from-pool (connection-pool) conn
|
(call-with-resource-from-pool (connection-pool)
|
||||||
list-systems))
|
list-systems))
|
||||||
(targets
|
(targets
|
||||||
(with-resource-from-pool (connection-pool) conn
|
(call-with-resource-from-pool (connection-pool)
|
||||||
valid-targets)))
|
valid-targets)))
|
||||||
(render-html
|
(render-html
|
||||||
#:sxml (view-branch-package-outputs
|
#:sxml (view-branch-package-outputs
|
||||||
parsed-query-parameters
|
parsed-query-parameters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue