Skip to content

Commit fe4c210

Browse files
authored
Do not override state input on each update (#310)
1 parent 8242858 commit fe4c210

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/bank_example/json_version/consumer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def count_transactions(value: dict, state: State):
2121
:param value: message value
2222
:param state: instance of State store
2323
"""
24-
state = {}
2524
total = state.get("total_transactions", 0)
2625
total += 1
2726
state.set("total_transactions", total)

0 commit comments

Comments
 (0)