Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Configure peer service from supervisor.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeiklejohn committed Jul 23, 2016
1 parent 51257a2 commit 9c80291
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/lasp_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ init(_Args) ->
ok
end,

%% Configure the peer service.
partisan_config:set(partisan_peer_service_manager,
partisan_default_peer_service_manager),

Partisan = {partisan_sup,
{partisan_sup, start_link, []},
permanent, infinity, supervisor, [partisan_sup]},
Expand Down
7 changes: 5 additions & 2 deletions test/lasp_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,11 @@ membership_test(Config) ->
[WrongPassive])
end
end, Nodes);
_ ->
ok
partisan_default_peer_service_manager ->
lists:foreach(fun(Node) ->
{ok, Members} = rpc:call(Node, Manager, members, []),
lists:usort(Members) =:= lists:usort(Nodes)
end, Nodes)
end,

ok.
Expand Down

0 comments on commit 9c80291

Please sign in to comment.