Skip to content

Commit

Permalink
fix the ALPN error
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Nov 22, 2024
1 parent 472534b commit d03312f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testutil/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func DgraphClientWithCerts(serviceAddr string, conf *viper.Viper) (*dgo.Dgraph,

dialOpts := []grpc.DialOption{}
if tlsCfg != nil {
tlsCfg.NextProtos = []string{"h2"}
dialOpts = append(dialOpts, grpc.WithTransportCredentials(credentials.NewTLS(tlsCfg)))
} else {
dialOpts = append(dialOpts, grpc.WithTransportCredentials(insecure.NewCredentials()))
Expand Down

0 comments on commit d03312f

Please sign in to comment.