Skip to content

Commit

Permalink
update the stub option
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouyihaiDing committed Aug 14, 2018
1 parent 543c5c7 commit f8416c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Spanner/src/Connection/Grpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ public function __construct(array $config = [])
$api = 'spanner';
$confPath = __DIR__. "/../V1/resources/$api.grpc.config";
$grpcGcpConfig = $this->enableConnectionManagement('spanner.googleapis.com', $confPath);
$grpcConfig['grpc_call_invoker'] = $grpcGcpConfig->callInvoker();
$grpcConfig['transportConfig']['grpc'] = [
'stubOpts' => [
'grpc_call_invoker' => $grpcGcpConfig->callInvoker()
]
];
}
}

Expand Down

0 comments on commit f8416c5

Please sign in to comment.