File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ let session = new Session(opts)
127
127
```
128
128
129
129
It's also possible to control the default address the session will bind to by providing
130
- an address via the ` COHERENCE_GRPC_PROXY_ADDRESS ` environment variable. The format of the value would
130
+ an address via the ` COHERENCE_SERVER_ADDRESS ` environment variable. The format of the value would
131
131
be the same as if you configured it programmatically as the above example shows.
132
132
133
133
Once the session has been constructed, it will now be possible to create maps and caches.
Original file line number Diff line number Diff line change @@ -260,9 +260,16 @@ export class Options {
260
260
* Construct a new {@link Options}.
261
261
*/
262
262
constructor ( ) {
263
- this . _address = ( process . env . grpc_proxy_address || process . env . COHERENCE_GRPC_PROXY_ADDRESS )
263
+ this . _address = ( process . env . grpc_proxy_address ||
264
+ process . env . COHERENCE_GRPC_PROXY_ADDRESS ||
265
+ process . env . COHERENCE_SERVER_ADDRESS )
264
266
|| Session . DEFAULT_ADDRESS
265
267
268
+ if ( process . env . COHERENCE_GRPC_PROXY_ADDRESS !== undefined ) {
269
+ console . warn ( "The COHERENCE_GRPC_PROXY_ADDRESS environment variable"
270
+ + " is deprecated. Please use COHERENCE_SERVER_ADDRESS instead." )
271
+ }
272
+
266
273
this . _requestTimeoutInMillis = Session . DEFAULT_REQUEST_TIMEOUT
267
274
this . _readyTimeoutInMillis = Session . DEFAULT_READY_TIMEOUT
268
275
this . _format = Session . DEFAULT_FORMAT
You can’t perform that action at this time.
0 commit comments