Skip to content

Commit 6a3efae

Browse files
committed
1.7.0: Upgrade to lwt 5.6
1 parent 1ab4b09 commit 6a3efae

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ADB.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ depends: [
1919

2020
"core" { >= "v0.15.0" }
2121
"re"
22-
"lwt" { >= "5.2.0" & < "6.0.0" }
22+
"lwt" { >= "5.6.0" & < "6.0.0" }
2323

2424
"caqti" { >= "1.0.0" & < "2.0.0" }
2525
"caqti-lwt"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Add to your OPAM file:
66
```
77
# You may need to add the pin-depends section:
88
pin-depends: [
9-
[ "ADB.1.6.0" "git+https://github.com/asemio/ADB.git#v1.6.0" ]
9+
[ "ADB.1.7.0" "git+https://github.com/asemio/ADB.git#v1.7.0" ]
1010
]
1111
1212
# Add to the depends section:
1313
depends: [
14-
"ADB" { = "1.6.0" }
14+
"ADB" { = "1.7.0" }
1515
]
1616
```
1717

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
(lang dune 2.0)
22
(name ADB)
3-
(version 1.6.0)
3+
(version 1.7.0)

src/adb/PG.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ let combined_to_error = function
104104
|(`Connect_failed _ as caqti) ->
105105
Caqti_error.show caqti |> Error.of_string
106106

107-
let lift_user_error err = Lwt_result.map_err (fun x -> `User_error x) err
107+
let lift_user_error err = Lwt_result.map_error (fun x -> `User_error x) err
108108

109109
let lift_mixed_errors (ll : S.combined list) : ('a, S.combined) result =
110110
Error (`Mixed_error (ll |> List.map ~f:combined_to_error))
111111

112112
let lift_unexpected_exn exn = Lwt.return_error (`Unexpected_exception exn)
113113

114-
let lift_caqti_error err = Lwt_result.map_err (fun x -> `Caqti x) err
114+
let lift_caqti_error err = Lwt_result.map_error (fun x -> `Caqti x) err
115115

116116
(*
117117
User_error: business logic error as opposed to DB or system errors.
@@ -152,7 +152,7 @@ let do_transaction { pool; log_statements; _ } ~f () =
152152
(* ERROR: ROLLBACK *)
153153
| Error err1 as res -> do_rollback ~rollback:M.rollback res err1)
154154
pool
155-
|> Lwt_result.map_err (function
155+
|> Lwt_result.map_error (function
156156
| `User_error err -> err
157157
| `Unexpected_exception exn -> raise exn
158158
| x -> combined_to_error x)

0 commit comments

Comments
 (0)