Use knots
A library of extracted Guile Fibers patterns and utilities.
This commit is contained in:
parent
a33e32275e
commit
8b49884816
13 changed files with 154 additions and 1205 deletions
|
|
@ -18,6 +18,8 @@
|
|||
(define-module (guix-data-service web build controller)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (knots parallelism)
|
||||
#:use-module (knots resource-pool)
|
||||
#:use-module (guix-data-service utils)
|
||||
#:use-module (guix-data-service database)
|
||||
#:use-module (guix-data-service web render)
|
||||
|
|
@ -41,7 +43,7 @@
|
|||
|
||||
(define parse-build-server
|
||||
(lambda (v)
|
||||
(letpar& ((build-servers
|
||||
(fibers-let ((build-servers
|
||||
(call-with-resource-from-pool (connection-pool)
|
||||
select-build-servers)))
|
||||
(or (any (match-lambda
|
||||
|
|
@ -88,7 +90,7 @@
|
|||
'()))
|
||||
(let ((system (assq-ref parsed-query-parameters 'system))
|
||||
(target (assq-ref parsed-query-parameters 'target)))
|
||||
(letpar& ((build-server-options
|
||||
(fibers-let ((build-server-options
|
||||
(with-resource-from-pool (connection-pool) conn
|
||||
(map (match-lambda
|
||||
((id url lookup-all-derivations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue