Skip to content

Commit

Permalink
fix: reverse the resource based routing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lalji Kanjareeya committed Jan 1, 2020
1 parent aae7311 commit 0b7e83e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Expand Up @@ -306,7 +306,7 @@ class Spanner extends GrpcService {
this.options.enableResourceBasedRouting =
typeof options!.enableResourceBasedRouting === 'boolean'
? options.enableResourceBasedRouting
: process.env.GOOGLE_CLOUD_ENABLE_RESOURCE_BASED_ROUTING !== 'false';
: process.env.GOOGLE_CLOUD_ENABLE_RESOURCE_BASED_ROUTING === 'true';
/**
* Get a list of {@link Instance} objects as a readable object stream.
*
Expand Down Expand Up @@ -826,6 +826,7 @@ class Spanner extends GrpcService {
if (!this.clients_.has(clientName)) {
this.instances_
.get(instanceId)!
//will move to getMetadata call once PR#760 merged.
.getInstanceEndpointUris((err, endpointUris) => {
if (err) {
if (err.code === 7) {
Expand Down

0 comments on commit 0b7e83e

Please sign in to comment.