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

Backport non-blocking batcher PR #227

Merged
merged 9 commits into from
Sep 17, 2024
Merged

Conversation

karlb
Copy link

@karlb karlb commented Sep 17, 2024

samlaf and others added 9 commits September 17, 2024 16:30
test(batcher): add e2e test for concurrent altda requests

doc: add explanation comment for FakeDAServer

chore: fix if condition in altda sendTransaction path

feat: add maxConcurrentDaRequests config flag + semaphore

refactor: batcher to use errgroup for da instead of separate semaphore/waitgroup

fix: nil pointer bug after using wrong function after rebase

fix: defn of maxConcurrentDaRequests=0

fix: TestBatcherConcurrentAltDARequests

chore: remove unneeded if statement around time.Sleep

refactor: use TryGo instead of Go to make logic local and easier to read

chore: clean up some comments in batcher

chore: make batcher shutdown cancel pending altda requests by using shutdownCtx instead of killCtx
The changes to make the op-batcher non-blocking were done on a version
after 1.9.1, so we have to undo one rename to make it work. This commit
should be discarded during the next rebase on upstream.
@karlb karlb force-pushed the karlb/non-blocking-op-batcher-test branch from 7bfc956 to 6f41a9e Compare September 17, 2024 14:30
@karlb karlb marked this pull request as ready for review September 17, 2024 14:30
@karlb karlb merged commit 6e1861d into celo8 Sep 17, 2024
53 of 54 checks passed
@karlb karlb deleted the karlb/non-blocking-op-batcher-test branch September 17, 2024 14:53
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