diff options
author | Christopher Baines <mail@cbaines.net> | 2024-06-30 11:42:24 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-06-30 11:42:24 +0100 |
commit | ca0b2801be72e323a8782919ffb89166c558c3ba (patch) | |
tree | 4fc3df8c1a9747ee69e2e845c03ebde77e08b7c9 /guix-build-coordinator | |
parent | 406db8a8db53731de432c452902a098915e876c2 (diff) | |
download | build-coordinator-ca0b2801be72e323a8782919ffb89166c558c3ba.tar build-coordinator-ca0b2801be72e323a8782919ffb89166c558c3ba.tar.gz |
Don't use a chunked response for the metrics
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r-- | guix-build-coordinator/agent-messaging/http/server.scm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/guix-build-coordinator/agent-messaging/http/server.scm b/guix-build-coordinator/agent-messaging/http/server.scm index 51ac6ac..2b325d7 100644 --- a/guix-build-coordinator/agent-messaging/http/server.scm +++ b/guix-build-coordinator/agent-messaging/http/server.scm @@ -986,12 +986,13 @@ INTERVAL (a time-duration object), otherwise does nothing and returns #f." #:code 200 #:headers '((content-type . (text/plain)) (vary . (accept)))) - (lambda (port) - (write-metrics (build-coordinator-metrics-registry - build-coordinator) - port) - (write-metrics plain-metrics-registry - port)))))) + (call-with-output-string + (lambda (port) + (write-metrics (build-coordinator-metrics-registry + build-coordinator) + port) + (write-metrics plain-metrics-registry + port))))))) (_ (render-json "not-found" |