mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
node: fix math server minor bug
This commit is contained in:
parent
66458fa188
commit
fa135621ae
@ -68,7 +68,7 @@ function mathDiv(call, cb) {
|
||||
function mathFib(stream) {
|
||||
// Here, call is a standard writable Node object Stream
|
||||
var previous = 0, current = 1;
|
||||
for (var i = 0; i < stream.request.limit; i++) {
|
||||
for (var i = 0; i < stream.request.getLimit(); i++) {
|
||||
var response = new math.Num();
|
||||
response.setNum(current);
|
||||
stream.write(response);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user