From 16ddfda32f7bcf35dfbc3c087e0db49cc28284ed Mon Sep 17 00:00:00 2001 From: wuaho Date: Tue, 3 Aug 2021 17:53:00 +0800 Subject: [PATCH] 1 --- v2/consumer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/consumer.py b/v2/consumer.py index 8e3cfcd..32cde0c 100644 --- a/v2/consumer.py +++ b/v2/consumer.py @@ -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