diff options
| author | Matias Goldfeld <[email protected]> | 2021-01-26 03:33:48 -0500 |
|---|---|---|
| committer | Matias Goldfeld <[email protected]> | 2021-01-26 03:33:48 -0500 |
| commit | a4afbc4c507419c5fd50c9403bc0bf6a53c92632 (patch) | |
| tree | c8d27cfc2fced85f634969b185d5f651c27915f2 /lib/gateway | |
| parent | Add MRs to CI build (diff) | |
| download | disml-a4afbc4c507419c5fd50c9403bc0bf6a53c92632.tar.xz disml-a4afbc4c507419c5fd50c9403bc0bf6a53c92632.zip | |
Stated incompatability with new versions of decompress in disml.opam and made some small fixes to add compatability with new OCaml versions
Diffstat (limited to 'lib/gateway')
| -rw-r--r-- | lib/gateway/sharder.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gateway/sharder.ml b/lib/gateway/sharder.ml index ba865a9..14763ca 100644 --- a/lib/gateway/sharder.ml +++ b/lib/gateway/sharder.ml @@ -23,7 +23,7 @@ let decompress src = pos := !pos + len;
len)
(fun obuf len ->
- Buffer.add_subbytes res obuf 0 len; 0xFFFF)
+ Buffer.add_subbytes res obuf ~pos:0 ~len:len; 0xFFFF)
(Zlib_inflate.default ~witness:B.bytes window)
|> function
| Ok _ -> Buffer.contents res
@@ -95,7 +95,7 @@ module Shard = struct let seq = J.(member "s" payload |> to_int) in
let t = J.(member "t" payload |> to_string) in
let data = J.member "d" payload in
- let session = if t = "READY" then begin
+ let session = if String.equal t "READY" then begin
Ivar.fill_if_empty shard.ready ();
Clock.after (Core.Time.Span.create ~sec:5 ())
>>> (fun _ -> Mvar.put identify_lock () >>> ignore);
|