[erlang-questions] Warning: the call to node/0 has no effect
Stuart Welham
stuart.welham@REDACTED
Fri May 10 12:52:02 CEST 2019
Hi
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
-Stuart
On Fri, 10 May 2019 at 11:00, Monk Boy <boyofmonk@REDACTED> wrote:
> Hi
>
> 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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190510/8f20af59/attachment.htm>
More information about the erlang-questions
mailing list