diff options
author | Anders Svensson <[email protected]> | 2016-05-04 19:14:27 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2016-05-04 19:14:27 +0200 |
commit | 47092580a7ca6de581abf672e45a1c11e1d4561e (patch) | |
tree | 58a91fcaa64e851ebc5a4fdc2592c046f415b146 /lib/diameter/src/transport | |
parent | 9169589569cda14c1c142cc396ab612697972dea (diff) | |
download | otp-47092580a7ca6de581abf672e45a1c11e1d4561e.tar.gz otp-47092580a7ca6de581abf672e45a1c11e1d4561e.tar.bz2 otp-47092580a7ca6de581abf672e45a1c11e1d4561e.zip |
Suppress dialyzer warning
This one:
diameter_tcp.erl:928: (call)
The call diameter_tcp:throttle({'timeout',_},#transport{socket::port() | {'sslsocket',_,_},parent::pid(),module::atom(),frag::binary() | {non_neg_integer(),non_neg_integer(),binary(),[binary()]},ssl::boolean() | [any()],timeout::'infinity' | non_neg_integer(),tref::'false' | reference(),flush::boolean(),throttle_cb::'false' | fun() | maybe_improper_list(fun() | maybe_improper_list(any(),[any()]) | {atom(),atom(),[any()]},[any()]) | {atom(),atom(),[any()]},throttled::'true' | binary()})
will never return since it differs in the 1st argument from the
success typing arguments:
('discard' | 'ok' | binary() | pid() | {'discard' | 'ok' | binary() | pid(),'false' | fun() | [fun() | [any()] | {atom(),atom(),[any()]}] | {atom(),atom(),[any()]}},#transport{socket::port() | {'sslsocket',_,_},parent::pid(),module::atom(),frag::binary() | {non_neg_integer(),non_neg_integer(),binary(),[binary()]},ssl::boolean() | [any()],timeout::'infinity' | non_neg_integer(),tref::'false' | reference(),flush::boolean(),throttle_cb::'false' | fun() | [fun() | [any()] | {atom(),atom(),[any()]}] | {atom(),atom(),[any()]},throttled::binary()})
It's true that the clause doesn't return, because of the throw, and
that's the intention.
Diffstat (limited to 'lib/diameter/src/transport')
-rw-r--r-- | lib/diameter/src/transport/diameter_tcp.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/diameter/src/transport/diameter_tcp.erl b/lib/diameter/src/transport/diameter_tcp.erl index 5c7c7cb700..783dc9b1a8 100644 --- a/lib/diameter/src/transport/diameter_tcp.erl +++ b/lib/diameter/src/transport/diameter_tcp.erl @@ -18,6 +18,7 @@ %% -module(diameter_tcp). +-dialyzer({no_fail_call, throttle/2}). -behaviour(gen_server). |