Node xDS example: show error on failure, close client when done

pull/24839/head
Michael Lumish 4 years ago
parent 9da7853179
commit c3cee0713a
  1. 2
      examples/node/xds/greeter_client.js

@ -53,7 +53,9 @@ function main() {
user = 'world';
}
client.sayHello({name: user}, function(err, response) {
if (err) throw err;
console.log('Greeting:', response.message);
client.close();
});
}

Loading…
Cancel
Save