Skip to content

Commit

Permalink
Add comment to BlockingDial
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyuri committed Dec 20, 2024
1 parent 76cc595 commit 827f617
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grpcurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,8 @@ func ServerTransportCredentials(cacertFile, serverCertFile, serverKeyFile string
// BlockingDial is a helper method to dial the given address, using optional TLS credentials,
// and blocking until the returned connection is ready. If the given credentials are nil, the
// connection will be insecure (plain-text).
// The network parameter should be left empty in most cases when your address is a RFC 3986
// compliant URI. The resolver from grpc-go will resolve the correct network type.
func BlockingDial(ctx context.Context, network, address string, creds credentials.TransportCredentials, opts ...grpc.DialOption) (*grpc.ClientConn, error) {
if creds == nil {
creds = insecure.NewCredentials()
Expand Down

0 comments on commit 827f617

Please sign in to comment.