mirror of
https://github.com/emqx/neuron.git
synced 2026-10-26 03:40:01 +08:00
Merge pull request #683 from fengzeroz/main
fix(tag): get tags that attribute is read or subscribe
This commit is contained in:
+2
-1
@@ -275,7 +275,8 @@ static UT_array *to_read_array(tag_elem_t *tags)
|
||||
utarray_new(array, neu_tag_get_icd());
|
||||
HASH_ITER(hh, tags, el, tmp)
|
||||
{
|
||||
if ((el->tag->attribute & NEU_ATTRIBUTE_READ) == NEU_ATTRIBUTE_READ) {
|
||||
if (neu_tag_attribute_test(el->tag, NEU_ATTRIBUTE_READ) ||
|
||||
neu_tag_attribute_test(el->tag, NEU_ATTRIBUTE_SUBSCRIBE)) {
|
||||
utarray_push_back(array, el->tag);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user