改为手动提交

This commit is contained in:
wuaho 2021-10-26 19:25:35 +08:00
parent d639660839
commit cf46c8b6d0

View File

@ -141,7 +141,7 @@ class Transmitter:
except Exception as e: except Exception as e:
self.log.error(traceback.format_exc()) self.log.error(traceback.format_exc())
buffer.clear() buffer.clear()
try: # try:
kafka_client.commit() # kafka_client.commit()
except Exception as e: # except Exception as e:
self.log.error(f'进程:{self.p} error:{e}') # self.log.error(f'进程:{self.p} error:{e}')