Try to start per-node servers immediately I can't think of a good reason not to do this.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/commit/664f0b8f Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/tree/664f0b8f Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/diff/664f0b8f Branch: refs/heads/windsor-merge Commit: 664f0b8f3f42f43be87aa9687372bac96c7743a0 Parents: b295083 Author: Adam Kocoloski <[email protected]> Authored: Wed Oct 16 11:51:05 2013 -0400 Committer: Robert Newson <[email protected]> Committed: Wed Jul 23 18:03:15 2014 +0100 ---------------------------------------------------------------------- src/rexi_server_mon.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/664f0b8f/src/rexi_server_mon.erl ---------------------------------------------------------------------- diff --git a/src/rexi_server_mon.erl b/src/rexi_server_mon.erl index 205ef4a..2dcb41c 100644 --- a/src/rexi_server_mon.erl +++ b/src/rexi_server_mon.erl @@ -47,7 +47,7 @@ status() -> init(ChildMod) -> net_kernel:monitor_nodes(true), - erlang:send_after(?INTERVAL, self(), check_nodes), + erlang:send(self(), check_nodes), {ok, ChildMod}.
