Skip to content

Commit

Permalink
use grpc (native) library instead of grpc-js library for example serv…
Browse files Browse the repository at this point in the history
…er, because grpc-js is not fully compatible to the native grpc server.
  • Loading branch information
Holger Finger committed Dec 19, 2019
1 parent c732162 commit 478cb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/echo/node-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@grpc/proto-loader": "^0.3.0",
"async": "^1.5.2",
"google-protobuf": "^3.6.0",
"@grpc/grpc-js": "^0.5.0",
"grpc": "^1.24.0",
"lodash": "^4.6.1"
}
}
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/echo/node-server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var PROTO_PATH = __dirname + '/../echo.proto';
var assert = require('assert');
var async = require('async');
var _ = require('lodash');
var grpc = require('@grpc/grpc-js');
var grpc = require('grpc');
var protoLoader = require('@grpc/proto-loader');
var packageDefinition = protoLoader.loadSync(
PROTO_PATH,
Expand Down

0 comments on commit 478cb23

Please sign in to comment.