Skip to content

Commit

Permalink
Update dialyzer type for orddict->dict change
Browse files Browse the repository at this point in the history
  • Loading branch information
russelldb committed Jan 11, 2018
1 parent 9bade06 commit ea3a425
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/riak_dt_lwwset.erl
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,24 @@

-export_type([lwwset/0, lwwset_op/0, binary_lwwset/0]).

-type lwwset() :: [entry()].
-type lwwset() :: dict(member(), {ts(), status()}).

-type binary_lwwset() :: binary(). %% A binary that from_binary/1 will operate on.

-type lwwset_op() :: {add, member(), ts()} | {remove, member(), ts()}.

-type entry() :: {member(), {ts(), status()}}.

-type member() :: term().
-type ts() :: pos_integer().
-type status() :: add() | remove().
-type add() :: ?ADD.
-type remove() :: ?REM.

-ifdef(namespaced_types).
-type dict(A, B) :: dict:dict(A, B).
-else.
-type dict(_A, _B) :: dict().
-endif.

-ifdef(EQC).
-define(DICT, orddict).
-else.
Expand Down

0 comments on commit ea3a425

Please sign in to comment.