From 882249df7b9c4c25b48f874af4e82ba9b99b4d7b Mon Sep 17 00:00:00 2001 From: Burlutskiy Ivan Date: Wed, 7 Oct 2020 12:52:20 +0300 Subject: [PATCH] Fix wrong property name --- complete/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/complete/client.js b/complete/client.js index b11bcb7..e79cf1d 100644 --- a/complete/client.js +++ b/complete/client.js @@ -15,7 +15,7 @@ var grpc = require('grpc'); var booksProto = grpc.load('books.proto'); -var client = new booksProto.books.BookService('127.0.0.1:50051', grpc.Credentials.createInsecure()); +var client = new booksProto.books.BookService('127.0.0.1:50051', grpc.credentials.createInsecure()); function printResponse(error, response) { if (error) @@ -77,4 +77,4 @@ else if (command == 'get') else if (command == 'delete') deleteBook(process.argv[0]); else if (command == 'watch') - watchBooks(); \ No newline at end of file + watchBooks();