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 Mar 5, 2024
1 parent 40517e9 commit 9191175
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 9191175

Please sign in to comment.