fix(emqx_gateway_cm): Fix channel ID in set_chan_stats
This commit is contained in:
parent
ab8ab21383
commit
706d9a899a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue