This commit is contained in:
wuaho 2021-08-03 17:53:00 +08:00
parent 009d5f0560
commit 16ddfda32f

View File

@ -18,6 +18,8 @@ def create_consumer(partition=-1):
# print(msg)
topic = msg.topic
val = msg.value
if val.get('properties',{}).get('owner_name') not in ('gmhdgdt', 'gmhdtt'):
continue
yield topic, val
return consumer, c