Merge pull request #352 from fengzeroz/main

#351 fix the tag id change when modifying the tag attribute
This commit is contained in:
fengzeroz
2022-03-22 15:43:49 +08:00
committed by GitHub
+3 -3
View File
@@ -197,9 +197,9 @@ void handle_update_tags(nng_aio *aio)
break;
}
tag =
neu_datatag_alloc(req->tags[i].attribute, req->tags[i].type,
req->tags[i].address, req->tags[i].name);
tag = neu_datatag_alloc_with_id(
req->tags[i].attribute, req->tags[i].type,
req->tags[i].address, req->tags[i].name, req->tags[i].id);
if (NULL == tag) {
code = NEU_ERR_ENOMEM;