From 7b89cca1c89a7d1d80800ae6aff9075cabedcf15 Mon Sep 17 00:00:00 2001 From: Adam Jones Date: Wed, 21 Feb 2024 16:27:12 +0000 Subject: [PATCH] chore(bigtable/bttest): Remove a deprecated option from the example grpc.WithInsecure is deprecated. It was marked as such by v1.43.0 of the library. See here: https://github.com/grpc/grpc-go/pull/4718 This commit removes a reference to this from the example comment. --- bigtable/bttest/inmem.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bigtable/bttest/inmem.go b/bigtable/bttest/inmem.go index 66339743fa52..b1cec05a0682 100644 --- a/bigtable/bttest/inmem.go +++ b/bigtable/bttest/inmem.go @@ -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))