warning: redefining module PayloadType.Protocol.Udp (current version loaded from /app/_build/prod/lib/expcap/ebin/Elixir.PayloadType.Protocol.Udp.beam)
lib/my_app/path/to/file.ex:123
compile with mix release (1.9) would result error:
** (Mix) Duplicated modules:
'Elixir.PayloadType.Protocol.Udp' specified in my_app and expcap
I googled a little bit, it does not seem to have a general way to override an exist protocol implementation, e.g. this thread.
Thanks for the nice library! Any suggestion on this ?
When I follow README instructions and try to override
PayloadType
forProtocol.Udp
like following:Above code will override exist protocol implementation, which results two issues:
warning about redefining module:
compile with mix release (1.9) would result error:
I googled a little bit, it does not seem to have a general way to override an exist protocol implementation, e.g. this thread.
Thanks for the nice library! Any suggestion on this ?