Skip to content

Commit 70d562f

Browse files
feat(spanner): install grpc rls and xds by default (#6007)
Co-authored-by: rahul2393 <[email protected]>
1 parent 51ef4dc commit 70d562f

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

spanner/client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ import (
3434
"google.golang.org/grpc"
3535
"google.golang.org/grpc/codes"
3636
"google.golang.org/grpc/metadata"
37+
38+
// Install google-c2p resolver, which is required for direct path.
39+
_ "google.golang.org/grpc/xds/googledirectpath"
40+
// Install RLS load balancer policy, which is needed for gRPC RLS.
41+
_ "google.golang.org/grpc/balancer/rls"
3742
)
3843

3944
const (

spanner/client_enablexds.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)