forked from cilium/tetragon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tetra: uses grpc.NewClient in NewClientWithDefaultContext
Switch from grpc.DialContext to grpc.NewClient which does not perform any I/O and wait lazily for the first RPC call to be made to connect. This is the way to go as DialContext is getting deprecated and the gRPC team has been writing that using the other is an anti-pattern. https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md Signed-off-by: Mahe Tardy <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
36 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