Skip to content

Commit

Permalink
make network argument more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchol committed Dec 10, 2024
1 parent 2349843 commit 92deafd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ module Expert = struct
let scheme = scheme
end))

let create_with_address ~(net : Eio_unix.Net.t) ~sw ~scheme ~host ~port =
let create_with_address ~(net : _ Eio.Net.t) ~sw ~scheme ~host ~port =
let inet, port =
Eio_unix.run_in_systhread (fun () ->
Unix.getaddrinfo host (string_of_int port)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Expert : sig
t

val create_with_address :
net:Eio_unix.Net.t ->
net:_ Eio.Net.t ->
sw:Eio.Switch.t ->
scheme:string ->
host:string ->
Expand All @@ -28,4 +28,4 @@ module Expert : sig
end

(* TODO: add logger *)
val create_client : net:Eio_unix.Net.t -> sw:Eio.Switch.t -> string -> t
val create_client : net:_ Eio.Net.t -> sw:Eio.Switch.t -> string -> t

0 comments on commit 92deafd

Please sign in to comment.