周子博 6 tahun lalu
induk
melakukan
c2cd43ee18
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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