Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding an option for outbound concurrency control #36

Merged
merged 7 commits into from
May 15, 2023

Conversation

Chengxuan
Copy link
Contributor

Some blockchain endpoint has a concurrent limit, add an option here to control the number of concurrent requests.

Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
@codecov-commenter
Copy link

Codecov Report

Merging #36 (ced163f) into main (835029c) will decrease coverage by 0.41%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
- Coverage   98.80%   98.39%   -0.41%     
==========================================
  Files          34       34              
  Lines        2674     2685      +11     
==========================================
  Hits         2642     2642              
- Misses         25       35      +10     
- Partials        7        8       +1     
Impacted Files Coverage Δ
pkg/rpcbackend/backend.go 82.55% <0.00%> (-12.11%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this is a great addition @Chengxuan
One request to avoid blocking infinitely, rather than up to a context timeout

pkg/rpcbackend/backend.go Outdated Show resolved Hide resolved
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
@peterbroadhurst
Copy link
Contributor

This will drop coverage I think, so I'll submit a follow-on PR to address that @Chengxuan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants