Skip to content

Commit cd6b35b

Browse files
authored
fixup: comment
Signed-off-by: Todd Baert <[email protected]>
1 parent 228008d commit cd6b35b

File tree

1 file changed

+1
-0
lines changed
  • providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/connector

1 file changed

+1
-0
lines changed

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/connector/grpc_watcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def sync_flags(self) -> None:
110110
return
111111
except grpc.RpcError as e:
112112
logger.error(f"SyncFlags stream error, {e.code()=} {e.details()=}")
113+
// re-create the stub of there's a connection issue - otherwise reconnect does not work as expected
113114
if e.code() == grpc.StatusCode.UNAVAILABLE:
114115
self.stub, self.channel = self.create_stub()
115116
except json.JSONDecodeError:

0 commit comments

Comments
 (0)