Skip to content

Commit

Permalink
Updated examples with new node package location
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Oct 1, 2015
1 parent 004128c commit f3f8564
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/node/greeter_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

var PROTO_PATH = __dirname + '/helloworld.proto';

var grpc = require('grpc');
var grpc = require('../../');
var hello_proto = grpc.load(PROTO_PATH).helloworld;

function main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/node/greeter_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

var PROTO_PATH = __dirname + '/helloworld.proto';

var grpc = require('grpc');
var grpc = require('../../');
var hello_proto = grpc.load(PROTO_PATH).helloworld;

/**
Expand Down
10 changes: 0 additions & 10 deletions examples/node/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions examples/node/route_guide/route_guide_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var async = require('async');
var fs = require('fs');
var parseArgs = require('minimist');
var path = require('path');
var _ = require('underscore');
var grpc = require('grpc');
var _ = require('lodash');
var grpc = require('../../../');
var routeguide = grpc.load(__dirname + '/route_guide.proto').routeguide;
var client = new routeguide.RouteGuide('localhost:50051',
grpc.Credentials.createInsecure());
Expand Down
4 changes: 2 additions & 2 deletions examples/node/route_guide/route_guide_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
var fs = require('fs');
var parseArgs = require('minimist');
var path = require('path');
var _ = require('underscore');
var grpc = require('grpc');
var _ = require('lodash');
var grpc = require('../../../');
var routeguide = grpc.load(__dirname + '/route_guide.proto').routeguide;

var COORD_FACTOR = 1e7;
Expand Down

0 comments on commit f3f8564

Please sign in to comment.