[erlang-questions] Warning: the call to node/0 has no effect
Fri May 10 12:52:02 CEST 2019
I'm not certain but I would guess because you are not actually using the
result of node() here and this creates a new list where it's not needed.
How about refactoring this to be
N = length(nodes()) + 1
On Fri, 10 May 2019 at 11:00, Monk Boy <boyofmonk@REDACTED> wrote:
> When compile the code , I got a message:
> src/http_qmonitor.erl:58: Warning: the call to node/0 has no effect
> the code is
> N = length([node()|nodes()]),
> I can't understand what is it
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions