25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix dialyzer warnings

This commit is contained in:
Paweł Chmielowski 2022-12-07 14:08:23 +01:00
parent 639183a783
commit 25d6b3d1c8

View File

@ -68,7 +68,7 @@
publish = #{},
id = 0 :: non_neg_integer(),
codec :: mqtt_codec:state(),
authentication :: #{}}).
authentication :: #{username => binary(), password => binary(), certfile => binary()}}).
-type state() :: #state{}.
@ -106,7 +106,7 @@ init([_Proc, Proto, Host, Port, Publish, Subscribe, Authentication, ReplicationU
#{username := User, password := 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.
handle_call(Request, From, State) ->