diff options
author | Anders Svensson <[email protected]> | 2012-08-29 15:12:58 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-08-29 15:39:36 +0200 |
commit | 63a18ced84eab9cad3e5394efe614ff61fd0e5e1 (patch) | |
tree | 18ea29ee3af30e7b2d1687e91dcc9e7ad63c9147 /lib/diameter/src/base/diameter_peer.erl | |
parent | a907e66c93e54ffd9b4c8c84f500cd267a28ddd8 (diff) | |
download | otp-63a18ced84eab9cad3e5394efe614ff61fd0e5e1.tar.gz otp-63a18ced84eab9cad3e5394efe614ff61fd0e5e1.tar.bz2 otp-63a18ced84eab9cad3e5394efe614ff61fd0e5e1.zip |
Dialyzer spec fixes
Diffstat (limited to 'lib/diameter/src/base/diameter_peer.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_peer.erl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_peer.erl b/lib/diameter/src/base/diameter_peer.erl index a2a1c567d8..74ba709aac 100644 --- a/lib/diameter/src/base/diameter_peer.erl +++ b/lib/diameter/src/base/diameter_peer.erl @@ -91,10 +91,21 @@ start(_T, _Opts, #diameter_service{}) -> Opt :: diameter:transport_opt(), TPid :: pid(), Addr :: inet:ip_address(), - Tmo :: non_neg_integer(), + Tmo :: non_neg_integer() | infinity, Data :: {{T, Mod, Cfg}, [Mod], [{T, [Mod], Cfg}], [Err]}, Mod :: module(), Cfg :: term(), + Err :: term() + ; ({#diameter_service{}, Tmo, Data}) + -> {TPid, [Addr], Tmo, Data} + | {error, [term()]} + when TPid :: pid(), + Addr :: inet:ip_address(), + Tmo :: non_neg_integer() | infinity, + Data :: {{T, Mod, Cfg}, [Mod], [{T, [Mod], Cfg}], [Err]}, + T :: {connect|accept, diameter:transport_ref()}, + Mod :: module(), + Cfg :: term(), Err :: term(). %% Initial start. |