-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rpc): use google.golang.org/grpc.NewClient instead of DialContext
Replace grpc.DialContext with grpc.NewClient in the rpc package to align with updated gRPC practices. The NewClient method creates a gRPC channel without performing I/O operations immediately, improving the connection management logic. - Update NewConn to use grpc.NewClient instead of grpc.DialContext. - Add detailed comments to explain the behavior of NewClient. - Modify TestManager to ensure each test case has an independent Manager instance. - Adjust UnreachableServer test case to reflect non-blocking behavior of NewClient. This change ensures better resource management and aligns with the latest gRPC client connection practices.
- Loading branch information
Showing
4 changed files
with
82 additions
and
53 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
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