Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(en): Add boxed L2 client and use it in DI (#1627)
## What ❔ - Adds boxed L2 client implementation and uses it in DI instead of a specific HTTP-based client. - Adds a mock L2 client. - Uses a mock L1 and L2 clients to test EN lifecycle in Rust, namely that it can start and timely terminates when sent a SIGINT. ## Why ❔ - L2 client abstraction is better for the node framework. - We have a frequent issue of newly added managed tasks being non-responsive, which leads to unnecessary delays during EN shutdown (30s in the worst case). - Using TypeScript integration tests for this purpose is slower and provides less control. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`. - [x] Linkcheck has been run via `zk linkcheck`. test(en): Add basic rust tests for EN
- Loading branch information
Showing
31 changed files
with
967 additions
and
261 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.