-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make `run` function inject stack parameter. Address reviewer comments.
- Loading branch information
Showing
3 changed files
with
61 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
type env = < | ||
type 'a env = < | ||
clock : Eio.Time.clock ; | ||
net : Eio.Net.t ; | ||
fs : Eio.Dir.t ; | ||
fs : Eio.Fs.dir Eio.Path.t ; | ||
secure_random : Eio.Flow.source ; | ||
> | ||
.. | ||
> as 'a | ||
|
||
module Transport : Dns_client.S | ||
with type io_addr = Ipaddr.t * int | ||
and type stack = env * Eio.Switch.t | ||
and type +'a io = 'a | ||
|
||
module type DNS_CLIENT = module type of Dns_client.Make(Transport) | ||
|
||
val run : < env; ..> -> ((module DNS_CLIENT) -> 'a) -> 'a | ||
val run : | ||
?resolv_conf:string | ||
-> _ env | ||
-> (Transport.stack -> (module DNS_CLIENT) -> 'a) | ||
-> 'a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters