Skip to content

Commit

Permalink
ThingUpdater: fix accumulation of ack requests on UpdateThing command.
Browse files Browse the repository at this point in the history
Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed Jun 23, 2022
1 parent 95d21e3 commit a4f8179
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -421,7 +421,7 @@ private FSM.State<State, Data> updateThing(final UpdateThing updateThing, final
updateThing.getDittoHeaders().getAcknowledgementRequests().contains(SEARCH_PERSISTED_REQUEST)
? metadata.withSender(getAckRecipient())
: metadata;
return stay().using(new Data(nextMetadata, lastWriteModel));
return stay().using(new Data(data.metadata().append(nextMetadata), lastWriteModel));
}

private FSM.State<State, Data> onPolicyReferenceTag(final PolicyReferenceTag policyReferenceTag, final Data data) {
Expand Down

0 comments on commit a4f8179

Please sign in to comment.