Skip to content

Commit 2cab327

Browse files
committed
Compose web and Prometheus servers via Eio.Fiber.all
Current_web.run and Prometheus_unix.serve now both return fiber bodies. Run them together with Fiber.all instead of sequencing them.
1 parent 55ea56a commit 2cab327

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/base_images.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ let main () config mode slack_path capnp_address auth_config submission_uri stag
101101
Routes.(s "login" /? nil @--> Current_github.Auth.login auth) ::
102102
Current_web.routes engine in
103103
let site = Current_web.Site.v ?authn ~secure_cookies ~has_role ~name:program_name ~refresh_pipeline:60 routes in
104-
Prometheus_unix.serve ~sw ~net prometheus_config;
105-
Current_web.run ~net ~mode site
104+
Eio.Fiber.all
105+
(Current_web.run ~net ~mode site :: Prometheus_unix.serve ~net prometheus_config)
106106

107107
(* Command-line parsing *)
108108

0 commit comments

Comments
 (0)