Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
ddc524b8
Commit
ddc524b8
authored
Apr 10, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
bea270db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
rpcserver.js
lib/amqp/rpcserver.js
+2
-2
test_rpccli.js
test/test_rpccli.js
+4
-2
No files found.
lib/amqp/rpcserver.js
View file @
ddc524b8
...
@@ -33,8 +33,8 @@ RPCServer.prototype.start = function(cb)
...
@@ -33,8 +33,8 @@ RPCServer.prototype.start = function(cb)
ch
.
sendToQueue
(
msg
.
properties
.
replyTo
,
new
Buffer
(
JSON
.
stringify
(
resp
)),{
correlationId
:
msg
.
properties
.
correlationId
,
persistent
:
false
});
ch
.
sendToQueue
(
msg
.
properties
.
replyTo
,
new
Buffer
(
JSON
.
stringify
(
resp
)),{
correlationId
:
msg
.
properties
.
correlationId
,
persistent
:
false
});
});
});
ch
.
ack
(
msg
);
//
ch.ack(msg);
},
{
noAck
:
fals
e
});
},
{
noAck
:
tru
e
});
cb
(
null
);
cb
(
null
);
});
});
...
...
test/test_rpccli.js
View file @
ddc524b8
...
@@ -28,11 +28,13 @@ var req = {
...
@@ -28,11 +28,13 @@ var req = {
var
idx
=
0
;
var
idx
=
0
;
async
.
whilst
(
async
.
whilst
(
function
()
{
return
idx
<
10
000
;
},
function
()
{
return
idx
<
2
000
;
},
function
(
callback
)
{
function
(
callback
)
{
req
.
id
=
idx
;
req
.
id
=
idx
;
caller
.
call
(
req
,
function
(
err
,
resp
){
caller
.
call
(
req
,
function
(
err
,
resp
){
//console.log(resp)
if
(
idx
%
100
==
0
){
console
.
log
(
resp
)
}
idx
++
;
idx
++
;
callback
(
null
);
callback
(
null
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment