diff options
| author | Philip Kuryloski <kuryloskip@vmware.com> | 2020-10-05 16:07:06 +0200 |
|---|---|---|
| committer | Philip Kuryloski <kuryloskip@vmware.com> | 2020-10-05 16:09:59 +0200 |
| commit | 1eb1ff1bf649c9fd94ea2b946fdbd75e8f5cbe07 (patch) | |
| tree | 3ed0fc741d86770f3a0fb158c18e0264c7b4c001 | |
| parent | eefb8c2792a85c281416d8cb1a2092d305380db6 (diff) | |
| download | rabbitmq-server-git-1eb1ff1bf649c9fd94ea2b946fdbd75e8f5cbe07.tar.gz | |
Workaround for dialyzer error
When erl_epmd:port_please/3 is called with a string(), dialyzer reports an error
that atom() is the only allowed type.
https://github.com/erlang/otp/blob/e8a9158ed2e686b1fa375cd0978e50d6bd70d088/lib/kernel/src/erl_epmd.erl#L136
Is suspected as the underlying issue, as the while the argument is ignored, the
spec is not in alignment with the remainder of the module.
| -rw-r--r-- | src/rabbit_networking.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl index 8ef569034d..cf7b92e65e 100644 --- a/src/rabbit_networking.erl +++ b/src/rabbit_networking.erl @@ -333,7 +333,7 @@ tcp_listener_stopped(Protocol, Opts, IPAddress, Port) -> record_distribution_listener() -> {Name, Host} = rabbit_nodes:parts(node()), - case erl_epmd:port_please(Name, Host, infinity) of + case erl_epmd:port_please(list_to_atom(Name), Host, infinity) of {port, Port, _Version} -> tcp_listener_started(clustering, [], {0,0,0,0,0,0,0,0}, Port); noport -> |
