Skip to content

Commit 1d1d85b

Browse files
committed
Update README to show the new API
1 parent 5d8132d commit 1d1d85b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grpc-gcp/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ First, Create a json file defining API configuration, with ChannelPoolConfig and
4949
Load configuration to ApiConfig.
5050

5151
```javascript
52-
var grpcGcp = require('grpc-gcp');
52+
// @grpc/grpc-js can be used in place of grpc with no changes
53+
var grpc = require('grpc');
54+
var grpcGcp = require('grpc-gcp')(grpc);
5355
var fs = require('fs');
5456

5557
var apiDefinition = JSON.parse(fs.readFileSync('your_api_config_json_file'));

0 commit comments

Comments
 (0)