aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-01-15 21:53:54 +0000
committerChristopher Baines <mail@cbaines.net>2021-01-15 22:20:13 +0000
commitf7d3c4bb78cf40702268ceecbecc74d7c839629f (patch)
treef0052b99517f6de1e038dd4077f03f11ec9e0d72 /scripts
parentb4ce30d7e0dc02d7a231dd0bb27c29843f2afb75 (diff)
downloadbuild-coordinator-f7d3c4bb78cf40702268ceecbecc74d7c839629f.tar
build-coordinator-f7d3c4bb78cf40702268ceecbecc74d7c839629f.tar.gz
Use methods for the agent messaging
This will allow adding more agent messaging approaches.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix-build-coordinator-agent.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in
index e8a2f0c..c68f94e 100644
--- a/scripts/guix-build-coordinator-agent.in
+++ b/scripts/guix-build-coordinator-agent.in
@@ -28,7 +28,8 @@
(ice-9 textual-ports)
((guix config) #:prefix guix-config:)
(guix-build-coordinator utils)
- (guix-build-coordinator agent))
+ (guix-build-coordinator agent)
+ (guix-build-coordinator agent-messaging http))
(define %options
;; Specifications of the command-line options
@@ -117,8 +118,10 @@
%option-defaults
(cdr (program-arguments)))))
(run-agent (assq-ref opts 'uuid)
- (assq-ref opts 'coordinator)
- (assq-ref opts 'password)
+ (make-http-agent-interface
+ (assq-ref opts 'coordinator)
+ (assq-ref opts 'uuid)
+ (assq-ref opts 'password))
(delete-duplicates (assq-ref opts 'systems))
(assq-ref opts 'max-parallel-builds)
(or (assq-ref opts 'derivation-substitute-urls)