Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
54f1f2bc
Commit
54f1f2bc
authored
7 years ago
by
roadscape
Browse files
Options
Downloads
Patches
Plain Diff
fix appbase batch request
parent
4e36067c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grep
+1
-1
1 addition, 1 deletion
grep
hive/indexer/http_client.py
+2
-1
2 additions, 1 deletion
hive/indexer/http_client.py
with
3 additions
and
2 deletions
grep
+
1
−
1
View file @
54f1f2bc
grep -ri $1 * --color=always | grep -v __pycache__ --color=auto
grep -ri
n
$1 * --color=always | grep -v __pycache__ --color=auto
This diff is collapsed.
Click to expand it.
hive/indexer/http_client.py
+
2
−
1
View file @
54f1f2bc
...
...
@@ -275,7 +275,7 @@ class HttpClient(object):
batch_size
=
batch_size
or
self
.
batch_size
batch_requests
=
({
"
method
"
:
name
,
"
method
"
:
"
condenser_api.
"
+
name
if
USE_APPBASE
else
name
,
"
params
"
:
i
,
"
jsonrpc
"
:
"
2.0
"
,
"
id
"
:
0
...
...
@@ -288,6 +288,7 @@ class HttpClient(object):
assert
batch_response
,
"
batch_response was empty
"
assert
len
(
batch_response
)
==
len
(
batch
),
"
batch_response len did not match params ({} vs {})
"
.
format
(
len
(
batch_response
),
len
(
batch
))
for
response
in
batch_response
:
assert
'
result
'
in
response
,
"
batch response missing `result`: {}
"
.
format
(
response
)
# TODO: appbase different err response fmt?
yield
response
[
'
result
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment