fix(gw): fix print client record error

This commit is contained in:
JianBo He 2021-09-30 11:27:53 +08:00
parent adaf3db719
commit ac3af8260d
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ gateway(_) ->
[Chann] ->
InfoTab = emqx_gateway_cm:tabname(info, Name),
[ChannInfo] = ets:lookup(InfoTab, Chann),
print({client, ChannInfo})
print_record({client, ChannInfo})
end;
'gateway-clients'(["kick", Name, ClientId]) ->

View File

@ -148,7 +148,7 @@ bind2str(LConf = #{bind := Bind}) when is_binary(Bind) ->
bind2str(LConf = #{<<"bind">> := Bind}) when is_binary(Bind) ->
LConf.
-spec listeners(atom_or_bin()) -> map().
-spec listeners(atom_or_bin()) -> [map()].
listeners(GwName0) ->
GwName = bin(GwName0),
RawConf = emqx_config:fill_defaults(