Skip to content

Commit

Permalink
chore(bigtable/bttest): Remove a deprecated option from the example
Browse files Browse the repository at this point in the history
grpc.WithInsecure is deprecated. It was marked as such by v1.43.0 of the
library. See here:

grpc/grpc-go#4718

This commit removes a reference to this from the example comment.
  • Loading branch information
adamroyjones committed May 13, 2024
1 parent 7737223 commit 7b89cca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bigtable/bttest/inmem.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ To use a Server, create it, and then connect to it with no security:
srv, err := bttest.NewServer("localhost:0")
...
conn, err := grpc.Dial(srv.Addr, grpc.WithInsecure())
conn, err := grpc.Dial(
srv.Addr,
grpc.WithTransportCredentials(insecure.NewCredentials()))
...
client, err := bigtable.NewClient(ctx, proj, instance,
option.WithGRPCConn(conn))
Expand Down

0 comments on commit 7b89cca

Please sign in to comment.