Resetting utils subtree.
This commit is contained in:
@@ -161,7 +161,7 @@ def ticks_to_kafka(ticks: List[TradingTick]) -> int:
|
||||
# Flush the existing messages if needed:
|
||||
TOTAL_TICK_COUNT += 1
|
||||
TICKS_SINCE_FLUSH += 1
|
||||
if TICKS_SINCE_FLUSH > 50_000:
|
||||
if TICKS_SINCE_FLUSH > 5_000:
|
||||
kafka_producer.flush()
|
||||
TICKS_SINCE_FLUSH = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user