chore(emqx_lwm2m_coap_resource): ignore coap_discover/2 from dialyzer

This commit is contained in:
z8674558 2021-03-03 01:41:09 +09:00 committed by Yudai Kiyofuji
parent 117c0cf252
commit 71ca1e4d78
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@
-define(LOG(Level, Format, Args), logger:Level("LWM2M-RESOURCE: " ++ Format, Args)).
-dialyzer([{nowarn_function, [coap_discover/2]}]).
% we use {'absolute', string(), [{atom(), binary()}]} as coap_uri()
% https://github.com/emqx/lwm2m-coap/blob/258e9bd3762124395e83c1e68a1583b84718230f/src/lwm2m_coap_resource.erl#L61
% resource operations
coap_discover(_Prefix, _Args) ->
[{absolute, "mqtt", []}].