周子博 %!s(int64=6) %!d(string=hai) anos
pai
achega
c2cd43ee18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/emqx_channel.erl

+ 1 - 1
src/emqx_channel.erl

@@ -256,7 +256,7 @@ connected(enter, _PrevSt, State = #state{proto_state = ProtoState}) ->
                          connected_at = os:timestamp()},
     ClientId = emqx_protocol:info(client_id, ProtoState),
     ok = emqx_cm:register_channel(ClientId),
-    ok = emqx_cm:set_chan_attrs(ClientId, attrs(NState)),
+    ok = emqx_cm:set_chan_attrs(ClientId, info(NState)),
     %% Ensure keepalive after connected successfully.
     Interval = emqx_protocol:info(keepalive, ProtoState),
     case ensure_keepalive(Interval, NState) of