uwiger / gproc

Extended process registry for Erlang
Apache License 2.0
1.07k stars 232 forks source link

Has gen_leader been deprecated ? #176

Open gilbertwong96 opened 5 years ago

gilbertwong96 commented 5 years ago

When I clone this repo directly on my local machine and execute rebar3 compile, the shell prompts:

src/gproc_dist.erl:25: Warning: behaviour gen_leader undefined
src/gproc_dist.erl:553: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace.

I suppose this behavior has been deprecated, but when I dig into the code, I found that this behavior is still used. I'm confused. Could you please tell me why you place the gen_leader module into patch dir rather src dir?

robertzhouxh commented 4 years ago
lib/gproc-0.8.0/src/gproc_dist.erl:25: Warning: behaviour gen_leader undefined
lib/gproc-0.8.0/src/gproc_dist.erl:553: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace