Skip to content

Commit

Permalink
fix depricated api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tullo committed Jul 14, 2024
1 parent e4c5449 commit 12ceb30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,9 @@ type CancelFunc func()

func getDgraphClient() (*dgo.Dgraph, CancelFunc) {
// connect to a dgraph cluster node (alpha)
//conn, err := grpc.Dial("0.0.0.0:9180", grpc.WithInsecure())
conn, err := grpc.Dial("0.0.0.0:9080", grpc.WithTransportCredentials(insecure.NewCredentials()))
var opts []grpc.DialOption
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient("0.0.0.0:9080", opts...)
if err != nil {
log.Fatal("While trying to dial gRPC")
}
Expand Down

0 comments on commit 12ceb30

Please sign in to comment.