whereis_name/2 export is missing on syn.erl
immnas opened this issue · comments
whereis_name/2 export is missing on syn.erl ..
its says undefined.
What says it? :)
Indeed, whereis_name/2
is an internal method on syn
. Compatible registries that use the via
module notation only need whereis_name/1
, which is exported here.
Can you provide clarity on what you are doing and trying to achieve so I can understand what you are referring to?
Hi,
I am calling syn:add_node_to_scopes([device]).
then i am checking syn:whereis_name(device,Key).
when i call syn:whereis_name(Key).
** exception error: no function clause matching syn:whereis_name(Key) (/home/ubuntu/syn_test/_build/default/lib/syn/src/syn.erl, line 388
Well you shouldn't. Docs are pretty clear, use lookup/2.
okay sorry i missed that. if i have send message to that PID. do i have to use some other API.