Skip to content

Commit

Permalink
prometheus-app: update to cohttp.1.0.0 API
Browse files Browse the repository at this point in the history
Discovered while trying to update hyperkit to OCaml 4.06.0, see
[moby/hyperkit#175].

This patch also adds OCaml 4.06.0 to the test matrix.

Signed-off-by: David Scott <[email protected]>
  • Loading branch information
djs55 committed Dec 18, 2017
1 parent a504f1b commit d8d0a8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ env:
- OCAML_VERSION=4.03 PACKAGE="prometheus-app"
- OCAML_VERSION=4.04 PACKAGE="prometheus-app"
- OCAML_VERSION=4.05 PACKAGE="prometheus-app"
- OCAML_VERSION=4.06 PACKAGE="prometheus-app"
os:
- linux
2 changes: 1 addition & 1 deletion app/prometheus_app.mli
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ module Cohttp (S : Cohttp_lwt.S.Server) : sig
val callback :
S.conn ->
Cohttp.Request.t ->
Cohttp_lwt_body.t -> (Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
Cohttp_lwt.Body.t -> (Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t
end
(** A Cohttp callback for a web-server that exposes the Prometheus metrics. *)
2 changes: 1 addition & 1 deletion prometheus-app.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ depends: [
"prometheus"
"fmt"
"re"
"cohttp" {>="0.99.0"}
"cohttp" {>="1.0.0"}
"cohttp-lwt"
"cohttp-lwt-unix"
"lwt" {>="2.5.0"}
Expand Down

0 comments on commit d8d0a8c

Please sign in to comment.