Skip to content

Commit 142c0f1

Browse files
authored
Merge pull request #45 from esl/fix-pick-server-comment
Fix comment about xmpp_servers
2 parents 7379591 + 275ad15 commit 142c0f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/amoc_xmpp.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ maybe_use_legacy_tls(Spec) ->
6767
%% @doc Picks a random server based on the config var `xmpp_servers'.
6868
%% This function expects a list of proplists defining the endpoint
6969
%% to which an XMPP client can connect, for instance:
70-
%% [[{host, "127.0.0.1"}, {port, 5222}], [{host, "127.0.0.1"}, {port, 5223}]]
70+
%% [[{host, <<"127.0.0.1">>}, {port, 5222}], [{host, <<"127.0.0.1">>}, {port, 5223}]]
7171
%% One of the above proplists is picked and can be added to user's spec.
7272
%% It's required that the proplists contains at least the `host' property.
7373
%% Since the `xmpp_servers' config option is read via `amoc_config' API,
7474
%% it's possible to pass it as an ENV var when starting amoc:
75-
%% ```> AMOC_xmpp_servers="[[{host,\"127.0.0.2\"}, {port, 5222}],[{host, \"127.0.0.1\"}, {port, 5223}]]" make console'''
75+
%% ```> AMOC_XMPP_SERVERS="[[{host,<<\"127.0.0.2\">>}, {port, 5222}],[{host, <<\"127.0.0.1\">>}, {port, 5223}]]" rebar3 shell'''
7676
-spec pick_server([[proplists:property()]]) -> [proplists:property()].
7777
pick_server(DefaultServers) ->
7878
Servers = amoc_config:get(xmpp_servers, DefaultServers),

0 commit comments

Comments
 (0)