This commit is contained in:
Ace Nassri 2018-06-22 13:54:40 -07:00
parent 28a6fbb8f1
commit ab5fb7bde4
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ function convert (call, callback) {
* CurrencyConverter service at the sample server port
*/
function main () {
var server = new grpc.Server();
const server = new grpc.Server();
server.addService(shopProto.CurrencyService.service, {getSupportedCurrencies, convert});
server.bind(`0.0.0.0:${PORT}`, grpc.ServerCredentials.createInsecure());
server.start();