aboutsummaryrefslogtreecommitdiff
path: root/lib/client.ml
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2018-12-12 15:23:14 -0700
committerAdelyn Breelove <[email protected]>2018-12-12 15:23:14 -0700
commitc046760eb599e42226c683aecbe33753dfc4d500 (patch)
tree69b2be155e7dfc52710cb5b7700c31fab633896c /lib/client.ml
parentWork on event dispatch and add model derives (diff)
downloaddisml-c046760eb599e42226c683aecbe33753dfc4d500.tar.xz
disml-c046760eb599e42226c683aecbe33753dfc4d500.zip
Complete event dispatch
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;
}