diff options
| author | Adelyn Breedlove <[email protected]> | 2019-02-12 19:49:33 +0000 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-02-12 19:49:33 +0000 |
| commit | b245933103d84a4320a9b21f0faaf84a11a2886b (patch) | |
| tree | b5ff6275e4053971d4f0d524cf39bd1310af4e67 /lib/models/snowflake.ml | |
| parent | Random useless command in the test bot (diff) | |
| download | disml-b245933103d84a4320a9b21f0faaf84a11a2886b.tar.xz disml-b245933103d84a4320a9b21f0faaf84a11a2886b.zip | |
Fix opam dependencies and revert changes
Diffstat (limited to 'lib/models/snowflake.ml')
| -rw-r--r-- | lib/models/snowflake.ml | 2 |
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
|