fix(emqx_gateway_cm): Fix channel ID in set_chan_stats

This commit is contained in:
k32 2022-01-20 10:18:34 +01:00
parent ab8ab21383
commit 706d9a899a
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ set_chan_stats(GwName, ClientId, Stats) ->
pid(), pid(),
emqx_types:stats()) -> boolean(). emqx_types:stats()) -> boolean().
do_set_chan_stats(GwName, ClientId, ChanPid, Stats) -> do_set_chan_stats(GwName, ClientId, ChanPid, Stats) ->
Chan = {ClientId, self()}, Chan = {ClientId, ChanPid},
try ets:update_element(tabname(info, GwName), Chan, {3, Stats}) try ets:update_element(tabname(info, GwName), Chan, {3, Stats})
catch catch
error:badarg -> false error:badarg -> false