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
c1d15ed5
Commit
c1d15ed5
authored
Apr 09, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corr
parent
9f476ab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rpccaller.js
lib/amqp/rpccaller.js
+2
-2
No files found.
lib/amqp/rpccaller.js
View file @
c1d15ed5
...
@@ -27,7 +27,7 @@ function RPCCaller(config)
...
@@ -27,7 +27,7 @@ function RPCCaller(config)
ch
.
responseEmitter
=
new
EventEmitter
();
ch
.
responseEmitter
=
new
EventEmitter
();
ch
.
responseEmitter
.
setMaxListeners
(
0
);
ch
.
responseEmitter
.
setMaxListeners
(
0
);
ch
.
consume
(
REPLY_QUEUE
,
ch
.
consume
(
REPLY_QUEUE
,
(
msg
)
=>
{
console
.
log
(
'reply consumee to '
+
msg
.
properties
.
correlationId
);
ch
.
responseEmitter
.
emit
(
msg
.
properties
.
correlationId
,
JSON
.
parse
(
msg
.
content
.
toString
()))},
(
msg
)
=>
{
console
.
log
(
msg
);
ch
.
responseEmitter
.
emit
(
msg
.
properties
.
correlationId
,
JSON
.
parse
(
msg
.
content
.
toString
()))},
{
noAck
:
true
});
{
noAck
:
true
});
self
.
opened
=
true
;
self
.
opened
=
true
;
...
@@ -50,7 +50,7 @@ RPCCaller.prototype.call = function(req,cb){
...
@@ -50,7 +50,7 @@ RPCCaller.prototype.call = function(req,cb){
self
.
ch
.
responseEmitter
.
once
(
corr
,
(
resp
)
=>
{
self
.
ch
.
responseEmitter
.
once
(
corr
,
(
resp
)
=>
{
cb
(
null
,
resp
);
cb
(
null
,
resp
);
});
});
self
.
ch
.
sendToQueue
(
self
.
name
,
new
Buffer
(
JSON
.
stringify
(
req
)),
{
corr
,
replyTo
:
REPLY_QUEUE
})
self
.
ch
.
sendToQueue
(
self
.
name
,
new
Buffer
(
JSON
.
stringify
(
req
)),
{
corr
elationId
:
corr
,
replyTo
:
REPLY_QUEUE
})
});
});
function
generateUuid
()
{
function
generateUuid
()
{
...
...
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