Skip to content

Commit ad7b756

Browse files
committed
Use peer:start_link correctly
1 parent 94cd903 commit ad7b756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mnesia/examples/bench/bench.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ do_start_all([Node | Nodes], Acc, Cookie) when is_atom(Node) ->
163163
[Name, Host] ->
164164
Arg = lists:concat(["-setcookie ", Cookie]),
165165
?d(" ~s", [left(Node)]),
166-
case peer:start(#{host => Host, name => Name, args => Arg, peer_down => crash}) of
166+
case peer:start_link(#{host => Host, name => Name, args => Arg}) of
167167
{ok, Node} ->
168168
load_modules(Node),
169169
rpc:call(Node, ?MODULE, bind_schedulers, []),

0 commit comments

Comments
 (0)