fix: rm unused func and exports

This commit is contained in:
JimMoen 2024-08-01 15:00:24 +08:00
parent 7a251c9ead
commit 15b3f4deb0
No known key found for this signature in database
1 changed files with 0 additions and 4 deletions

View File

@ -37,7 +37,6 @@
get_mqtt_conf/2,
get_mqtt_conf/3,
set_conn_state/2,
set_conninfo_proto_ver/2,
stats/1,
caps/1
]).
@ -220,9 +219,6 @@ info(impl, #channel{session = Session}) ->
set_conn_state(ConnState, Channel) ->
Channel#channel{conn_state = ConnState}.
set_conninfo_proto_ver({none, #{version := ProtoVer}}, Channel = #channel{conninfo = ConnInfo}) ->
Channel#channel{conninfo = ConnInfo#{proto_ver => ProtoVer}}.
-spec stats(channel()) -> emqx_types:stats().
stats(#channel{session = undefined}) ->
emqx_pd:get_counters(?CHANNEL_METRICS);