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
cec90801
Commit
cec90801
authored
May 30, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
6bf85b33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
service-storage.js
storage-service/ws/v0.1/service-storage.js
+4
-4
No files found.
storage-service/ws/v0.1/service-storage.js
View file @
cec90801
...
@@ -106,7 +106,7 @@ router.get('/:id/objects',function (req, res) {
...
@@ -106,7 +106,7 @@ router.get('/:id/objects',function (req, res) {
//start stream response
//start stream response
res
.
type
(
'application/json'
);
res
.
type
(
'application/json'
);
res
.
send
(
'['
);
res
.
write
(
'['
);
async
.
whilst
(
async
.
whilst
(
function
()
{
return
cont
;
},
function
()
{
return
cont
;
},
function
(
callback
){
function
(
callback
){
...
@@ -116,17 +116,17 @@ router.get('/:id/objects',function (req, res) {
...
@@ -116,17 +116,17 @@ router.get('/:id/objects',function (req, res) {
cont
=
false
;
cont
=
false
;
}
else
{
}
else
{
var
objout
=
obj_out
(
obj
);
var
objout
=
obj_out
(
obj
);
res
.
send
(
objout
);
res
.
write
(
JSON
.
stringify
(
objout
)
);
if
(
limit
>
0
&&
idx
>=
from_seq
+
limit
){
if
(
limit
>
0
&&
idx
>=
from_seq
+
limit
){
cont
=
false
;
cont
=
false
;
}
else
{
}
else
{
res
.
send
(
','
);
res
.
write
(
','
);
}
}
}
}
callback
();
callback
();
});
});
},
function
(
err
){
},
function
(
err
){
res
.
send
(
']'
);
res
.
write
(
']'
);
bss
.
close
(
function
(
err
){
bss
.
close
(
function
(
err
){
res
.
status
(
200
).
end
();
res
.
status
(
200
).
end
();
//respHelper.responseOK(obj_return);
//respHelper.responseOK(obj_return);
...
...
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