aboutsummaryrefslogtreecommitdiff
path: root/lib/models/snowflake.ml
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2019-02-12 19:49:33 +0000
committerAdelyn Breedlove <[email protected]>2019-02-12 19:49:33 +0000
commit9588c99cf6eb4cb46aeeb7c0ee5623c037e9301e (patch)
treeb5ff6275e4053971d4f0d524cf39bd1310af4e67 /lib/models/snowflake.ml
parentRandom useless command in the test bot (diff)
parentFix opam dependencies and revert changes (diff)
downloaddisml-9588c99cf6eb4cb46aeeb7c0ee5623c037e9301e.tar.xz
disml-9588c99cf6eb4cb46aeeb7c0ee5623c037e9301e.zip
Merge branch 'fix_build' into 'master'
Fix opam dependencies and revert changes See merge request Mishio595/disml!18
Diffstat (limited to 'lib/models/snowflake.ml')
-rw-r--r--lib/models/snowflake.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/snowflake.ml b/lib/models/snowflake.ml
index 2bf2281..92c692c 100644
--- a/lib/models/snowflake.ml
+++ b/lib/models/snowflake.ml
@@ -8,7 +8,7 @@ let of_yojson d =
try Ok (of_yojson_exn d)
with Yojson.Safe.Util.Type_error (why,_) -> Error why
-let to_yojson s : Yojson.Safe.t = `String (Int.to_string s)
+let to_yojson s : Yojson.Safe.json = `String (Int.to_string s)
let timestamp snowflake = (snowflake lsr 22) + 1_420_070_400_000