Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
17.3 not passing with strange errors, remove for now
  • Loading branch information
danikp committed Aug 8, 2015
1 parent b59c3cd commit 1732372
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ otp_release:
- 18.0
- 17.5
- 17.4
- 17.3
- 17.1
- 17.0

Expand Down
2 changes: 1 addition & 1 deletion src/boss_news.hrl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-record(state, {
watch_dict = dict:new() ::dict:dict(),
ttl_tree = gb_trees:empty() ::gb_trees:gb_tree(),
ttl_tree = gb_trees:empty() ::gb_trees:tree(),

set_watchers = dict:new() ::dict:dict(),
id_watchers = dict:new() ::dict:dict(),
Expand Down
6 changes: 3 additions & 3 deletions src/boss_news_controller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-endif.
-record(state, {
watch_dict = dict:new() ::dict:dict(),
ttl_tree = gb_trees:empty() ::gb_trees:gb_tree(),
ttl_tree = gb_trees:empty() ::gb_trees:tree(),

set_watchers = dict:new() ::dict:dict(),
id_watchers = dict:new() ::dict:dict(),
Expand All @@ -33,7 +33,7 @@
-spec start_link(_) -> 'ignore' | {'error',_} | {'ok',pid()}.
-spec init([]) -> {'ok', #state{}}.
-spec handle_call('dump' | 'reset' | {'cancel_watch',_} | {'extend_watch',_} | {'created',binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | []),_} | {'deleted',binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | []),_} | {'updated',binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | []),_,_} | {'watch',binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | []),_,_,number()} | {'set_watch',_,binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | []),_,_,number()},_,_) ->
{'reply',_,#state{ttl_tree::gb_trees:gb_tree()}}.
{'reply',_,#state{ttl_tree::gb_trees:tree()}}.
-spec handle_cast(_,_) -> {'noreply',_}.
-spec terminate(_,_) -> 'ok'.
-spec code_change(_,_,_) -> {'ok',_}.
Expand All @@ -49,7 +49,7 @@

-export([future_time/1]).
-spec make_wildcard_watchers(#state{watch_dict::dict:dict(),
ttl_tree::gb_trees:gb_tree(),
ttl_tree::gb_trees:tree(),
set_watchers::dict:dict(),
id_watchers::dict:dict(),
set_attr_watchers::dict:dict(),
Expand Down
2 changes: 1 addition & 1 deletion src/boss_news_controller_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ process_news_state( WatchId, StateAcc, WatchList) ->
%src/boss_news_controller_util.erl:237:
% Record construction #state{watch_dict::dict(),ttl_tree::{number(),'nil' | {_,_,'nil' | {_,_,_,_},_}},set_watchers::dict(),id_watchers::dict(),set_attr_watchers::dict(),id_attr_watchers::dict(),watch_counter::integer()}%
%violates the declared type of field ttl_tree::gb_tree()
-spec prune_expired_entries(#state{ttl_tree::gb_trees:gb_tree()}) -> #state{ttl_tree::gb_trees:gb_tree()}.
-spec prune_expired_entries(#state{ttl_tree::gb_trees:tree()}) -> #state{ttl_tree::gb_trees:tree()}.
prune_expired_entries(#state{ ttl_tree = Tree } = State) ->
Now = boss_news_controller:future_time(0),
{NewState, NewTree} = tiny_pq:prune_collect_old(fun prune_itterator/2, State, Tree, Now),
Expand Down

0 comments on commit 1732372

Please sign in to comment.