Skip to content

Commit 4b8a00b

Browse files
committed
maintenance: adapt to message-switch usage of result
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent 364c27f commit 4b8a00b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ module RRD = struct
278278

279279
let ( >>|= ) m f =
280280
m >>= function
281-
| `Ok x ->
281+
| Ok x ->
282282
f x
283-
| `Error y ->
283+
| Error y ->
284284
let b = Buffer.create 16 in
285285
let fmt = Format.formatter_of_buffer b in
286286
Client.pp_error fmt y ;
@@ -1459,9 +1459,9 @@ let servers = String.Table.create () ~size:4
14591459

14601460
(* XXX: need a better error-handling strategy *)
14611461
let get_ok = function
1462-
| `Ok x ->
1462+
| Ok x ->
14631463
x
1464-
| `Error e ->
1464+
| Error e ->
14651465
let b = Buffer.create 16 in
14661466
let fmt = Format.formatter_of_buffer b in
14671467
Message_switch_unix.Protocol_unix.Server.pp_error fmt e ;

0 commit comments

Comments
 (0)