Delete ackprops in pstate
Prior to this change, ackprops is duplicated with ack_props This change delete ackprops.
This commit is contained in:
parent
a1092a6784
commit
f7285d5a58
|
@ -39,7 +39,6 @@
|
||||||
peercert,
|
peercert,
|
||||||
proto_ver,
|
proto_ver,
|
||||||
proto_name,
|
proto_name,
|
||||||
ackprops,
|
|
||||||
client_id,
|
client_id,
|
||||||
is_assigned,
|
is_assigned,
|
||||||
conn_pid,
|
conn_pid,
|
||||||
|
@ -606,10 +605,10 @@ send(Packet = ?PACKET(Type), PState = #pstate{proto_ver = Ver, sendfun = SendFun
|
||||||
%%------------------------------------------------------------------------------
|
%%------------------------------------------------------------------------------
|
||||||
%% Assign a clientid
|
%% Assign a clientid
|
||||||
|
|
||||||
maybe_assign_client_id(PState = #pstate{client_id = <<>>, ackprops = AckProps}) ->
|
maybe_assign_client_id(PState = #pstate{client_id = <<>>, ack_props = AckProps}) ->
|
||||||
ClientId = emqx_guid:to_base62(emqx_guid:gen()),
|
ClientId = emqx_guid:to_base62(emqx_guid:gen()),
|
||||||
AckProps1 = set_property('Assigned-Client-Identifier', ClientId, AckProps),
|
AckProps1 = set_property('Assigned-Client-Identifier', ClientId, AckProps),
|
||||||
PState#pstate{client_id = ClientId, is_assigned = true, ackprops = AckProps1};
|
PState#pstate{client_id = ClientId, is_assigned = true, ack_props = AckProps1};
|
||||||
maybe_assign_client_id(PState) ->
|
maybe_assign_client_id(PState) ->
|
||||||
PState.
|
PState.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue