Skip to content

Commit

Permalink
remove rresult, also from unikernels
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Sep 25, 2023
1 parent 118b976 commit 12f6c93
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lzo/dune
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(test
(name tests)
(modules tests)
(libraries alcotest crowbar fmt bigstringaf decompress.lzo logs.fmt rresult)
(libraries alcotest crowbar fmt bigstringaf decompress.lzo logs.fmt)
)

;(executable;
; (public_name lzo-fuzzable)
; (name lzo_fuzzable)
; (modules lzo_fuzzable)
; (libraries afl-persistent lzo rresult)
; (libraries afl-persistent lzo)
;)
2 changes: 1 addition & 1 deletion mirage-client/unikernel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct

let read_config data =
FS.get data (Mirage_kv.Key.v "openvpn.config") >|= function
| Error e -> Rresult.R.error_to_msg ~pp_error:FS.pp_error (Error e)
| Error e -> Error (`Msg (Fmt.to_to_string FS.pp_error e))
| Ok data ->
let string_of_file _ = Error (`Msg "not supported") in
Miragevpn.Config.parse_client ~string_of_file data
Expand Down
2 changes: 1 addition & 1 deletion mirage-nat/unikernel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct

let read_config data =
FS.get data (Mirage_kv.Key.v "openvpn.config") >|= function
| Error e -> Rresult.R.error_to_msg ~pp_error:FS.pp_error (Error e)
| Error e -> Error (`Msg (Fmt.to_to_string FS.pp_error e))
| Ok data ->
let string_of_file _ = Error (`Msg "not supported") in
Miragevpn.Config.parse_client ~string_of_file data
Expand Down
2 changes: 1 addition & 1 deletion mirage-router/unikernel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct
in
B.read block 0L data >|= function
| Ok () -> Ok data
| Error e -> Rresult.R.error_msgf "%a" B.pp_error e
| Error e -> Error (`Msg (Fmt.to_to_string B.pp_error e))

let read_config block =
let open Lwt_result.Infix in
Expand Down
2 changes: 1 addition & 1 deletion mirage-server/unikernel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct

let read_config data =
FS.get data (Mirage_kv.Key.v "openvpn.config") >|= function
| Error e -> Rresult.R.error_to_msg ~pp_error:FS.pp_error (Error e)
| Error e -> Error (`Msg (Fmt.to_to_string FS.pp_error e))
| Ok data ->
let string_of_file _ = Error (`Msg "no string_of_file support") in
Miragevpn.Config.parse ~string_of_file data
Expand Down

0 comments on commit 12f6c93

Please sign in to comment.