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
2009d322
Commit
2009d322
authored
Jun 01, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffer alloc
parent
1aeaaaf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
memstore.js
jobworker/lib/memstore.js
+1
-1
dataevent.js
storage-service/lib/dataevent.js
+1
-1
No files found.
jobworker/lib/memstore.js
View file @
2009d322
...
@@ -25,7 +25,7 @@ memstore.prototype.getItem = function(k,cb)
...
@@ -25,7 +25,7 @@ memstore.prototype.getItem = function(k,cb)
if
(
!
err
&&
v
){
if
(
!
err
&&
v
){
if
(
typeof
v
==
'object'
&&
v
.
type
==
'Buffer'
)
if
(
typeof
v
==
'object'
&&
v
.
type
==
'Buffer'
)
{
{
value
=
new
Buffer
.
from
(
v
.
data
);
value
=
Buffer
.
from
(
v
.
data
);
}
else
{
}
else
{
value
=
JSON
.
parse
(
v
);
value
=
JSON
.
parse
(
v
);
}
}
...
...
storage-service/lib/dataevent.js
View file @
2009d322
...
@@ -29,7 +29,7 @@ module.exports.newdata = function(prm,cb){
...
@@ -29,7 +29,7 @@ module.exports.newdata = function(prm,cb){
var
msg
=
JSON
.
stringify
(
objMsg
);
var
msg
=
JSON
.
stringify
(
objMsg
);
ch
.
assertExchange
(
ex
,
'topic'
,
{
durable
:
false
});
ch
.
assertExchange
(
ex
,
'topic'
,
{
durable
:
false
});
ch
.
publish
(
ex
,
key
,
new
Buffer
(
msg
));
ch
.
publish
(
ex
,
key
,
Buffer
.
from
(
msg
));
//console.log("[AMQP] Sent %s:'%s'", key, msg);
//console.log("[AMQP] Sent %s:'%s'", key, 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