From 05332b0749393e7e644e5f7f76500b57bb70f7e3 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Wed, 9 Jun 2010 22:19:59 -0400 Subject: faster+simpler get_pingnode_state --- src/mem3.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mem3.erl b/src/mem3.erl index cbb7a8d5..29140471 100644 --- a/src/mem3.erl +++ b/src/mem3.erl @@ -321,10 +321,7 @@ install_new_state(#mem{args=Args} = State) -> get_pingnode_state(PingNode) -> - % ping the PingNode and get its state - pong = net_adm:ping(PingNode), - timer:sleep(1000), % let dist. erl get set up... sigh. - {ok, RemoteState} = rpc:call(PingNode, mem3, state, []), + {ok, RemoteState} = gen_server:call({?SERVER, PingNode}, state), RemoteState. -- cgit v1.2.3