mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
update location of .protos in node
This commit is contained in:
parent
ee31301a0c
commit
7eb08a6c6b
@ -37,7 +37,8 @@ var grpc = require('../');
|
||||
|
||||
var _ = require('lodash');
|
||||
|
||||
var health_proto = grpc.load(__dirname + '/health.proto');
|
||||
var health_proto = grpc.load(__dirname +
|
||||
'/../../proto/grpc/health/v1alpha/health.proto');
|
||||
|
||||
var HealthClient = health_proto.grpc.health.v1alpha.Health;
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
var assert = require('assert');
|
||||
|
||||
var grpc = require('..');
|
||||
var math = grpc.load(__dirname + '/math/math.proto').math;
|
||||
var math = grpc.load(__dirname + '/../../proto/math/math.proto').math;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -34,7 +34,8 @@
|
||||
'use strict';
|
||||
|
||||
var grpc = require('../..');
|
||||
var math = grpc.load(__dirname + '/math.proto').math;
|
||||
var math = grpc.load(__dirname + '/../../../proto/math/math.proto').math;
|
||||
|
||||
|
||||
/**
|
||||
* Server function for division. Provides the /Math/DivMany and /Math/Div
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
var assert = require('assert');
|
||||
|
||||
var grpc = require('..');
|
||||
var math = grpc.load(__dirname + '/math/math.proto').math;
|
||||
var math = grpc.load(__dirname + '/../../proto/math/math.proto').math;
|
||||
|
||||
/**
|
||||
* Client to use to make requests to a running server.
|
||||
|
||||
@ -41,7 +41,8 @@ var ProtoBuf = require('protobufjs');
|
||||
|
||||
var grpc = require('..');
|
||||
|
||||
var math_proto = ProtoBuf.loadProtoFile(__dirname + '/math/math.proto');
|
||||
var math_proto = ProtoBuf.loadProtoFile(__dirname +
|
||||
'/../../proto/math/math.proto');
|
||||
|
||||
var mathService = math_proto.lookup('math.Math');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user