Skip to content

Commit 1fc259d

Browse files
authored
Merge pull request #18 from aramallo/master
removed dependency on already removed module
2 parents b76a5e0 + cd40f18 commit 1fc259d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plumtree_broadcast.erl

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ start_link() ->
139139
InitLazys = [],
140140
plumtree_util:log(debug, "init peers, eager: ~p, lazy: ~p",
141141
[InitEagers, InitLazys]),
142-
Mods = app_helper:get_env(plumtree, broadcast_mods, []),
142+
Mods = application:get_env(plumtree, broadcast_mods, []),
143143
Res = start_link(Members, InitEagers, InitLazys, Mods,
144144
[{lazy_tick_period, LazyTickPeriod},
145145
{exchange_tick_period, ExchangeTickPeriod}]),
@@ -473,7 +473,7 @@ maybe_exchange(undefined, State) ->
473473
maybe_exchange(Peer, State=#state{mods=[Mod | _], exchanges=Exchanges}) ->
474474
%% limit the number of exchanges this node can start concurrently.
475475
%% the exchange must (currently?) implement any "inbound" concurrency limits
476-
ExchangeLimit = app_helper:get_env(plumtree, broadcast_start_exchange_limit, 1),
476+
ExchangeLimit = application:get_env(plumtree, broadcast_start_exchange_limit, 1),
477477
BelowLimit = not (length(Exchanges) >= ExchangeLimit),
478478
FreeMod = lists:keyfind(Mod, 1, Exchanges) =:= false,
479479
case BelowLimit and FreeMod of
@@ -660,7 +660,7 @@ schedule_exchange_tick(Period) ->
660660
schedule_tick(exchange_tick, broadcast_exchange_timer, Period).
661661

662662
schedule_tick(Message, Timer, Default) ->
663-
TickMs = app_helper:get_env(plumtree, Timer, Default),
663+
TickMs = application:get_env(plumtree, Timer, Default),
664664
erlang:send_after(TickMs, ?MODULE, Message).
665665

666666
reset_peers(AllMembers, EagerPeers, LazyPeers, State) ->

0 commit comments

Comments
 (0)