Skip to content

Commit

Permalink
Fix dialyzer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed Aug 23, 2024
1 parent 47a7e78 commit dd70dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xmpp_stream_out.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ connect(AddrPorts, State) ->

-ifndef(USE_GETHOSTBYNAME).
-spec connect([addr_info()], state(), network_error()) ->
{ok, term(), ip_port()} | network_error().
{ok, term(), ip_port(), [addr_info()]} | network_error().
connect([{#{family := Type, addr := SockAddr}, TLS}|AddressInfos], State, _) ->
#{addr := Addr, port := Port} = SockAddr,
Opts = [binary, {packet, 0},
Expand All @@ -1440,7 +1440,7 @@ connect([], _State, Err) ->
Err.
-else.
-spec connect([ip_port()], state(), network_error()) ->
{ok, term(), ip_port()} | network_error().
{ok, term(), ip_port(), [ip_port()]} | network_error().
connect([{Addr, Port, TLS}|AddrPorts], State, _) ->
Type = get_addr_type(Addr),
Opts = [binary, {packet, 0},
Expand Down

0 comments on commit dd70dd4

Please sign in to comment.