diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-03-14 17:20:35 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-03-14 17:20:35 +0000 |
| commit | eddfe7919c5143ab7022dce28768549d3ec39325 (patch) | |
| tree | 4e6d2b0eaacd01ee7305925ee4161c8077174d6e /src | |
| parent | aba018952747eb170cb5ef55e3429416ca0295c2 (diff) | |
| download | rabbitmq-server-git-eddfe7919c5143ab7022dce28768549d3ec39325.tar.gz | |
Hush, little dialyzer, don't cry.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_misc.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 196d6da0f8..3f3aeb62d9 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -202,7 +202,7 @@ -spec(format_message_queue/2 :: (any(), priority_queue:q()) -> term()). -spec(append_rpc_all_nodes/4 :: ([node()], atom(), atom(), [any()]) -> [any()]). -spec(multi_call/2 :: - ([pid()], any()) -> [{[{pid(), any()}], [{pid(), any()}]}]). + ([pid()], any()) -> {[{pid(), any()}], [{pid(), any()}]}). -spec(quit/1 :: (integer() | string()) -> no_return()). -endif. @@ -890,7 +890,7 @@ multi_call(Pids, Req) -> MonitorPids = [start_multi_call(Pid, Req) || Pid <- Pids], receive_multi_call(MonitorPids, [], []). -start_multi_call(Pid, Req) -> +start_multi_call(Pid, Req) when is_pid(Pid) -> Mref = erlang:monitor(process, Pid), Pid ! {'$gen_call', {self(), Mref}, Req}, {Mref, Pid}. |
