summaryrefslogtreecommitdiff
path: root/src/delegate_sup.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-01-27 18:18:39 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-01-27 18:18:39 +0000
commit2924a63b5dace9e3ae1c8f6bdee6188f4f1ff33c (patch)
treeed3bdaa561c3f61efd2f5376776877645c2640f3 /src/delegate_sup.erl
parent42cec4e248c41cc2823353b428877492ee2b7238 (diff)
downloadrabbitmq-server-2924a63b5dace9e3ae1c8f6bdee6188f4f1ff33c.tar.gz
Cope with the possibility that the user of the delegate mechanism is not on a node running rabbitbug23696
Diffstat (limited to 'src/delegate_sup.erl')
-rw-r--r--src/delegate_sup.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delegate_sup.erl b/src/delegate_sup.erl
index 52747221..e0ffa7c8 100644
--- a/src/delegate_sup.erl
+++ b/src/delegate_sup.erl
@@ -40,7 +40,7 @@ start_link() ->
%%----------------------------------------------------------------------------
init(_Args) ->
- DCount = delegate:delegate_count(),
+ DCount = delegate:delegate_count([node()]),
{ok, {{one_for_one, 10, 10},
[{Num, {delegate, start_link, [Num]},
transient, 16#ffffffff, worker, [delegate]} ||