Fix nit
This commit is contained in:
parent
28a6fbb8f1
commit
ab5fb7bde4
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ function convert (call, callback) {
|
||||||
* CurrencyConverter service at the sample server port
|
* CurrencyConverter service at the sample server port
|
||||||
*/
|
*/
|
||||||
function main () {
|
function main () {
|
||||||
var server = new grpc.Server();
|
const server = new grpc.Server();
|
||||||
server.addService(shopProto.CurrencyService.service, {getSupportedCurrencies, convert});
|
server.addService(shopProto.CurrencyService.service, {getSupportedCurrencies, convert});
|
||||||
server.bind(`0.0.0.0:${PORT}`, grpc.ServerCredentials.createInsecure());
|
server.bind(`0.0.0.0:${PORT}`, grpc.ServerCredentials.createInsecure());
|
||||||
server.start();
|
server.start();
|
||||||
|
|
Loading…
Reference in a new issue