From 4176aae943a02c878f3c6fd56f395b079697f032 Mon Sep 17 00:00:00 2001 From: wuaho Date: Thu, 21 Oct 2021 10:13:21 +0800 Subject: [PATCH] add unique id --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 3f19a36..61cd01a 100644 --- a/app.py +++ b/app.py @@ -40,7 +40,7 @@ class XProcess(Process): type_ = data['#type'] del data['#type'] 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_: # continue