Skip to content

Commit

Permalink
chore(spanner): disable routeToLeader by default (#7525)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul2393 authored Mar 9, 2023
1 parent b6f652b commit 44b44be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spanner/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func contextWithOutgoingMetadata(ctx context.Context, md metadata.MD, disableRou
// form projects/PROJECT_ID/instances/INSTANCE_ID/databases/DATABASE_ID. It uses
// a default configuration.
func NewClient(ctx context.Context, database string, opts ...option.ClientOption) (*Client, error) {
return NewClientWithConfig(ctx, database, ClientConfig{SessionPoolConfig: DefaultSessionPoolConfig, DisableRouteToLeader: false}, opts...)
return NewClientWithConfig(ctx, database, ClientConfig{SessionPoolConfig: DefaultSessionPoolConfig, DisableRouteToLeader: true}, opts...)
}

// NewClientWithConfig creates a client to a database. A valid database name has
Expand Down

0 comments on commit 44b44be

Please sign in to comment.