Skip to content

Commit

Permalink
Remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andersfugmann committed Mar 13, 2024
1 parent bf94808 commit ed191cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aws-s3-async/io.ml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module Net = struct
in
let interrupt = match connect_timeout_ms with
| None -> None
| Some ms -> Some (Async.after (Core.Time.Span.of_ms (float ms)))
| Some ms -> Some (Async.after (Core.Time_float.Span.of_ms (float ms)))
in
Async.try_with (fun () -> Conduit_async.V3.connect_uri ?interrupt ~options uri) >>=? fun (socket, ic, oc) ->
let reader = Reader.pipe ic in
Expand Down
4 changes: 2 additions & 2 deletions aws-s3/s3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ module Make(Io : Types.Io) = struct
|> Delete_multi.xml_of_request
|> fun req -> Ezxmlm.to_string [ req ]
in
let headers = [ "Content-MD5", Base64.encode_string (Caml.Digest.string request) ] in
let headers = [ "Content-MD5", Base64.encode_string (Stdlib.Digest.string request) ] in
let headers = maybe_add_request_payer confirm_requester_pays headers in
let body, sink = string_sink () in
let cmd () =
Expand Down Expand Up @@ -547,7 +547,7 @@ module Make(Io : Types.Io) = struct
let query = [ "uploadId", t.id ] in
let request =
(* TODO: Sort the parts by partNumber *)
let parts = Caml.List.sort (fun a b -> compare a.Multipart.part_number b.part_number) t.parts in
let parts = Stdlib.List.sort (fun a b -> compare a.Multipart.part_number b.part_number) t.parts in
Multipart.Complete.(xml_of_request { parts })
|> (fun node -> Format.asprintf "%a" Ezxmlm.pp [node])
in
Expand Down
2 changes: 1 addition & 1 deletion cli/aws.ml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ module Make(Io : Aws_s3.Types.Io) = struct
| Some t -> Ptime.to_rfc3339 ~space:false t
in
let rec ls_all ?max_keys (result, cont) =
List.iter ~f:(fun { S3.last_modified; key; size; etag; _ } -> Caml.Printf.printf "%s\t%d\t%s\t%s\n%!" (string_of_time last_modified) size key etag) result;
List.iter ~f:(fun { S3.last_modified; key; size; etag; _ } -> Stdlib.Printf.printf "%s\t%d\t%s\t%s\n%!" (string_of_time last_modified) size key etag) result;
let max_keys = match max_keys with
| Some n -> Some (n - List.length result)
| None -> None
Expand Down

0 comments on commit ed191cd

Please sign in to comment.