mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix dialyzer warnings
This commit is contained in:
parent
639183a783
commit
25d6b3d1c8
@ -68,7 +68,7 @@
|
|||||||
publish = #{},
|
publish = #{},
|
||||||
id = 0 :: non_neg_integer(),
|
id = 0 :: non_neg_integer(),
|
||||||
codec :: mqtt_codec:state(),
|
codec :: mqtt_codec:state(),
|
||||||
authentication :: #{}}).
|
authentication :: #{username => binary(), password => binary(), certfile => binary()}}).
|
||||||
|
|
||||||
-type state() :: #state{}.
|
-type state() :: #state{}.
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ init([_Proc, Proto, Host, Port, Publish, Subscribe, Authentication, ReplicationU
|
|||||||
#{username := User, password := Pass} ->
|
#{username := User, password := Pass} ->
|
||||||
connect(Transport:connect(Host, Port, [binary]), State, Transport, {User, Pass});
|
connect(Transport:connect(Host, Port, [binary]), State, Transport, {User, Pass});
|
||||||
_ ->
|
_ ->
|
||||||
{stop, {error, <<"Certificate can be only used for encrypted connections">>, Authentication, Proto}}
|
{stop, {error, <<"Certificate can be only used for encrypted connections">>}}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
handle_call(Request, From, State) ->
|
handle_call(Request, From, State) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user