-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance gRPC client with state management and reconnection logic
- Introduced state management in GrpcClient to monitor and handle connection states effectively. - Added a reconnect channel and a state monitoring goroutine to facilitate automatic reconnections on state changes. - Updated the connect method to initiate a reconnection loop upon connection loss. - Enhanced logging for connection state changes and errors during connection attempts. - Refactored tests to ensure proper initialization of gRPC client and server, improving test reliability and coverage.
- Loading branch information
Showing
3 changed files
with
373 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.