25
1
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:
Paweł Chmielowski 2022-12-07 14:08:23 +01:00
parent 639183a783
commit 25d6b3d1c8

View File

@ -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) ->