Open edescourtis opened 6 years ago
https://github.com/bitwalker/swarm/blob/7d2c2f4a97ce202b4ed111337c076ea275ec9ba2/lib/swarm/tracker/tracker.ex#L699
I am using a library which is intercepting GenServer.call and GenServer.cast below my module. Something fairly common in the OTP world. I need an option to tell Swarm to send calls using a specific label to get around this issue. See https://github.com/blackberry/Erlang-OTP/blob/3ec06ce97019eed9472a2cf8950ed23d7a2e6b9b/lib/stdlib/src/gen.erl#L146 . Can we please add this option when registering the process?
default can be :'$gen_call' https://github.com/blackberry/Erlang-OTP/blob/3ec06ce97019eed9472a2cf8950ed23d7a2e6b9b/lib/stdlib/src/gen_server.erl#L175
Another option would be to provide a call function reference (would be acceptable)
https://github.com/bitwalker/swarm/blob/7d2c2f4a97ce202b4ed111337c076ea275ec9ba2/lib/swarm/tracker/tracker.ex#L699
I am using a library which is intercepting GenServer.call and GenServer.cast below my module. Something fairly common in the OTP world. I need an option to tell Swarm to send calls using a specific label to get around this issue. See https://github.com/blackberry/Erlang-OTP/blob/3ec06ce97019eed9472a2cf8950ed23d7a2e6b9b/lib/stdlib/src/gen.erl#L146 . Can we please add this option when registering the process?