Skip to content

Commit 90da26c

Browse files
committed
reset client updates on crasch
1 parent caa0a17 commit 90da26c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fedn/network/combiner/hooks/grpc_wrappers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def wrapper(self, request, context):
2626
try:
2727
yield from fn(self, request, context)
2828
except Exception as e:
29+
self.client_updates = {}
2930
self._retire_and_log(func_name, e)
3031
# Option B for streaming: signal an RPC error the client understands
3132
context.set_code(grpc.StatusCode.FAILED_PRECONDITION)

0 commit comments

Comments
 (0)