add unique id

This commit is contained in:
wuaho 2021-10-21 10:17:57 +08:00
parent 4176aae943
commit 3b9ed0c98f

2
app.py
View File

@ -40,7 +40,7 @@ class XProcess(Process):
type_ = data['#type']
del data['#type']
ts = int(time.time())
data['properties']['unique_id'] = f'{msg.partition}-{msg.offset}'
data['properties']['unique_id'] = f'{msg.topic}-{msg.partition}-{msg.offset}'
if 'user' in type_:
# continue