Skip to content

Commit 04a466e

Browse files
committed
CP-34942: Use lwt 5 interfaces
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent 0092260 commit 04a466e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

misc/channel_helper.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,13 @@ let advertise_t _common_options_t proxy_socket =
129129
let buffer = Bytes.make (String.length token) '\000' in
130130
let io_vector = Lwt_unix.IO_vectors.create () in
131131
Lwt_unix.IO_vectors.append_bytes io_vector buffer 0 (Bytes.length buffer) ;
132-
Lwt_unix.Versioned.recv_msg_2 ~socket:fd ~io_vectors:io_vector
133-
>>= fun (n, fds) ->
132+
Lwt_unix.recv_msg ~socket:fd ~io_vectors:io_vector >>= fun (n, fds) ->
134133
List.iter Unix.close fds ;
135134
let token' = Bytes.sub buffer 0 n in
136135
let io_vector' = Lwt_unix.IO_vectors.create () in
137136
Lwt_unix.IO_vectors.append_bytes io_vector' token' 0 (Bytes.length token') ;
138137
if token = Bytes.to_string token' then
139-
Lwt_unix.Versioned.send_msg_2 ~socket:fd ~io_vectors:io_vector'
140-
~fds:[proxy_socket]
138+
Lwt_unix.send_msg ~socket:fd ~io_vectors:io_vector' ~fds:[proxy_socket]
141139
>>= fun _ -> return ()
142140
else
143141
return ()

xapi-idl.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ depends: [
1717
"cohttp"
1818
"fd-send-recv"
1919
"logs"
20-
"lwt"
20+
"lwt" {>= "5.0.0"}
2121
"message-switch-core"
2222
"message-switch-unix"
2323
"mtime"

0 commit comments

Comments
 (0)