aboutsummaryrefslogtreecommitdiff
path: root/lib/client.ml
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2018-12-12 17:01:04 -0700
committerAdelyn Breedlove <[email protected]>2018-12-12 17:01:04 -0700
commita1e99ad1691a67d5aecc73109d2e1c16bdbe4050 (patch)
tree0c29235bf41df0705e854c73b2b32ce60b3a357d /lib/client.ml
parentMerge branch 'dev' of https://gitlab.com/Mishio595/disml into dev (diff)
parentUpdate my name in disml.opam (diff)
downloaddisml-a1e99ad1691a67d5aecc73109d2e1c16bdbe4050.tar.xz
disml-a1e99ad1691a67d5aecc73109d2e1c16bdbe4050.zip
Merge branch 'dev' of https://gitlab.com/Mishio595/disml into dev
Diffstat (limited to 'lib/client.ml')
-rw-r--r--lib/client.ml9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/client.ml b/lib/client.ml
index b27a2ee..018f3e6 100644
--- a/lib/client.ml
+++ b/lib/client.ml
@@ -1,21 +1,20 @@
open Async
-module Make(T : S.Token) = struct
+module Make(T : S.Token)(H : S.Handler) = struct
include T
module Http = Http.Make(T)
- module Sharder = Sharder.Make(Http)
+ module Dispatch = Dispatch.Make(H)
+ module Sharder = Sharder.Make(Http)(Dispatch)
type t = {
sharder: Sharder.t Ivar.t;
- handler: string Pipe.Writer.t;
token: string;
}
- let init ~handler () =
+ let init () =
{
sharder = Ivar.create ();
- handler;
token;
}