Skip to content

Commit

Permalink
dune build @fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
reynir committed Sep 27, 2024
1 parent 6ae2ee5 commit 17b9462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/engine.ml
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,7 @@ let push_request tls =

let push_reply tls data =
(* a trailing 0 byte.. ("\000") *)
let repl =
String.concat "" [ Packet.push_reply; data; "\000" ]
in
let repl = String.concat "" [ Packet.push_reply; data; "\000" ] in
Option.to_result
~none:(`Msg "Tls.send application data failed for push request")
(Tls.Engine.send_application_data tls [ repl ])
Expand Down
3 changes: 1 addition & 2 deletions src/tls_crypt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ module Metadata = struct
User str

let to_octets = function
| User str ->
"\000" ^ str
| User str -> "\000" ^ str
| Timestamp ptime ->
let n = Int64.of_float (Ptime.to_float_s ptime) in
let cs = Bytes.create (1 + 8) in
Expand Down

0 comments on commit 17b9462

Please sign in to comment.