add unique id
This commit is contained in:
parent
debadeb774
commit
4176aae943
2
app.py
2
app.py
@ -40,7 +40,7 @@ class XProcess(Process):
|
|||||||
type_ = data['#type']
|
type_ = data['#type']
|
||||||
del data['#type']
|
del data['#type']
|
||||||
ts = int(time.time())
|
ts = int(time.time())
|
||||||
data['unique_id'] = f'{msg.partition}-{msg.offset}'
|
data['properties']['unique_id'] = f'{msg.partition}-{msg.offset}'
|
||||||
|
|
||||||
if 'user' in type_:
|
if 'user' in type_:
|
||||||
# continue
|
# continue
|
||||||
|
Loading…
Reference in New Issue
Block a user