Fix the pool metrics
This commit is contained in:
parent
f0f1329461
commit
d8ade0ea11
1 changed files with 20 additions and 20 deletions
|
|
@ -101,7 +101,6 @@
|
|||
(%guix-data-service-metrics-registry registry)
|
||||
|
||||
(let ((finished? (make-condition))
|
||||
(render-metrics (make-render-metrics registry))
|
||||
(request-scheduler #f))
|
||||
(call-with-sigint
|
||||
(lambda ()
|
||||
|
|
@ -218,6 +217,7 @@ port. Also, the port used can be changed by passing the --port option.\n"
|
|||
conn)))
|
||||
request-scheduler)
|
||||
|
||||
(let ((render-metrics (make-render-metrics registry)))
|
||||
(run-server/patched
|
||||
(lambda (request body)
|
||||
(metric-increment requests-metric)
|
||||
|
|
@ -238,7 +238,7 @@ port. Also, the port used can be changed by passing the --port option.\n"
|
|||
|
||||
(apply values (get-message reply))))
|
||||
#:host host
|
||||
#:port port))
|
||||
#:port port)))
|
||||
#:unwind? #t)))
|
||||
|
||||
;; Guile sometimes just seems to stop listening on the port, so try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue