Skip to content

Commit

Permalink
Rename 'client_id' field to 'clientid'
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercl committed Sep 29, 2019
1 parent ddd68e6 commit d004a5b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/emqx.hrl
Expand Up @@ -154,7 +154,7 @@
%% Banned
%%--------------------------------------------------------------------

-type(banned_who() :: {client_id, binary()}
-type(banned_who() :: {clientid, binary()}
| {username, binary()}
| {ip_address, inet:ip_address()}).

Expand Down
6 changes: 3 additions & 3 deletions priv/emqx.schema
Expand Up @@ -524,10 +524,10 @@ end}.
Formatter = {emqx_logger_formatter,
#{template =>
[time," [",level,"] ",
{client_id,
{clientid,
[{peername,
[client_id,"@",peername," "],
[client_id, " "]}],
[clientid,"@",peername," "],
[clientid, " "]}],
[{peername,
[peername," "],
[]}]},
Expand Down
2 changes: 1 addition & 1 deletion test/emqx_SUITE.erl
Expand Up @@ -43,7 +43,7 @@ t_get_env(_) ->
t_emqx_pubsub_api(_) ->
emqx:start(),
true = emqx:is_running(node()),
{ok, C} = emqtt:start_link([{host, "localhost"}, {client_id, "myclient"}]),
{ok, C} = emqtt:start_link([{host, "localhost"}, {clientid, "myclient"}]),
{ok, _} = emqtt:connect(C),
ClientId = <<"myclient">>,
Topic = <<"mytopic">>,
Expand Down
4 changes: 2 additions & 2 deletions test/emqx_request_responser_SUITE.erl
Expand Up @@ -42,7 +42,7 @@ request_response_per_qos(QoS) ->
RspTopic = <<"response_topic">>,
{ok, Requester} = emqx_request_sender:start_link(RspTopic, QoS,
[{proto_ver, v5},
{client_id, <<"requester">>},
{clientid, <<"requester">>},
{properties, #{ 'Request-Response-Information' => 1}}]),
%% This is a square service
Square = fun(_CorrData, ReqBin) ->
Expand All @@ -51,7 +51,7 @@ request_response_per_qos(QoS) ->
end,
{ok, Responser} = emqx_request_handler:start_link(ReqTopic, QoS, Square,
[{proto_ver, v5},
{client_id, <<"responser">>}
{clientid, <<"responser">>}
]),
ok = emqx_request_sender:send(Requester, ReqTopic, RspTopic, <<"corr-1">>, <<"2">>, QoS),
receive
Expand Down

0 comments on commit d004a5b

Please sign in to comment.