Skip to content

Commit

Permalink
oasis: migrate to insecure.NewCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh authored and tjanez committed Feb 11, 2022
1 parent eb10a56 commit 252f9b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oasis/oasis.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"google.golang.org/grpc"
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/credentials/insecure"

"github.com/oasisprotocol/oasis-core/go/common/crypto/hash"
cmnGrpc "github.com/oasisprotocol/oasis-core/go/common/grpc"
Expand Down Expand Up @@ -133,7 +134,7 @@ func (c *grpcClient) connect(ctx context.Context) (*grpc.ClientConn, error) {
// Establish new gRPC connection.
var err error
logger.Debug("Establishing connection", "grpc_addr", grpcAddr)
c.grpcConn, err = cmnGrpc.Dial(grpcAddr, grpc.WithInsecure())
c.grpcConn, err = cmnGrpc.Dial(grpcAddr, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
logger.Debug("Failed to establish connection",
"grpc_addr", grpcAddr,
Expand Down

0 comments on commit 252f9b8

Please sign in to comment.