From debadeb774d4c46649b114eb028314178abb2509 Mon Sep 17 00:00:00 2001 From: wuaho Date: Thu, 21 Oct 2021 10:09:50 +0800 Subject: [PATCH] add unique id --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 5ed0ebb..3f19a36 100644 --- a/app.py +++ b/app.py @@ -40,6 +40,7 @@ class XProcess(Process): type_ = data['#type'] del data['#type'] ts = int(time.time()) + data['unique_id'] = f'{msg.partition}-{msg.offset}' if 'user' in type_: # continue