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
dc7bfbd1
Commit
dc7bfbd1
authored
Apr 10, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inc prefetch size
parent
ddc524b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
rpccaller.js
lib/amqp/rpccaller.js
+1
-0
rpcserver.js
lib/amqp/rpcserver.js
+1
-1
No files found.
lib/amqp/rpccaller.js
View file @
dc7bfbd1
...
@@ -26,6 +26,7 @@ function RPCCaller(config)
...
@@ -26,6 +26,7 @@ function RPCCaller(config)
ch
.
responseEmitter
=
new
EventEmitter
();
ch
.
responseEmitter
=
new
EventEmitter
();
ch
.
responseEmitter
.
setMaxListeners
(
0
);
ch
.
responseEmitter
.
setMaxListeners
(
0
);
ch
.
prefetch
(
4
);
ch
.
consume
(
REPLY_QUEUE
,
ch
.
consume
(
REPLY_QUEUE
,
(
msg
)
=>
{
ch
.
responseEmitter
.
emit
(
msg
.
properties
.
correlationId
,
JSON
.
parse
(
msg
.
content
.
toString
()))},
(
msg
)
=>
{
ch
.
responseEmitter
.
emit
(
msg
.
properties
.
correlationId
,
JSON
.
parse
(
msg
.
content
.
toString
()))},
{
noAck
:
true
});
{
noAck
:
true
});
...
...
lib/amqp/rpcserver.js
View file @
dc7bfbd1
...
@@ -23,7 +23,7 @@ RPCServer.prototype.start = function(cb)
...
@@ -23,7 +23,7 @@ RPCServer.prototype.start = function(cb)
var
q
=
self
.
name
;
var
q
=
self
.
name
;
ch
.
assertQueue
(
q
,
{
durable
:
false
});
ch
.
assertQueue
(
q
,
{
durable
:
false
});
ch
.
prefetch
(
1
);
ch
.
prefetch
(
4
);
//console.log(' [x] Awaiting RPC requests');
//console.log(' [x] Awaiting RPC requests');
ch
.
consume
(
q
,
function
reply
(
msg
)
{
ch
.
consume
(
q
,
function
reply
(
msg
)
{
...
...
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