Skip to content

Commit

Permalink
Refactor forked provider backend APIs (#1944)
Browse files Browse the repository at this point in the history
# Description

<!--
A description of what this PR is solving.
-->

## Related issue

<!--
Please link related issues: Fixes #<issue_number>
More info: https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->

## Tests

<!--
Please refer to the CONTRIBUTING.md file to know more about the testing process. Ensure you've tested at least the package you're modifying if running all the tests consumes too much memory on your system.
-->

- [ ] Yes
- [ ] No, because they aren't needed
- [ ] No, because I need help

## Added to documentation?

<!--
If the changes are small, code comments are enough, otherwise, the documentation is needed. It
may be a README.md file added to your module/package, a DojoBook PR or both.
-->

- [ ] README.md
- [ ] [Dojo Book](https://github.com/dojoengine/book)
- [ ] No documentation needed

## Checklist

- [ ] I've formatted my code (`scripts/prettier.sh`, `scripts/rust_fmt.sh`, `scripts/cairo_fmt.sh`)
- [ ] I've linted my code (`scripts/clippy.sh`, `scripts/docs.sh`)
- [ ] I've commented my code
- [ ] I've requested a review after addressing the comments
  • Loading branch information
kariy authored May 9, 2024
1 parent 810cd57 commit 7194fb9
Show file tree
Hide file tree
Showing 4 changed files with 334 additions and 277 deletions.
2 changes: 1 addition & 1 deletion bin/katana/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub struct EnvironmentOptions {

impl KatanaArgs {
pub fn init_logging(&self) -> Result<(), Box<dyn std::error::Error>> {
const DEFAULT_LOG_FILTER: &str = "info,executor=trace,forked_backend=trace,server=debug,\
const DEFAULT_LOG_FILTER: &str = "info,executor=trace,forking::backend=trace,server=debug,\
katana_core=trace,blockifier=off,jsonrpsee_server=off,\
hyper=off,messaging=debug,node=error";

Expand Down
2 changes: 1 addition & 1 deletion crates/katana/storage/provider/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub enum ProviderError {
/// [ForkedProvider](crate::providers::fork::ForkedProvider).
#[cfg(feature = "fork")]
#[error(transparent)]
ForkedBackend(#[from] crate::providers::fork::backend::ForkedBackendError),
ForkedBackend(#[from] crate::providers::fork::backend::BackendError),

/// Any error that is not covered by the other variants.
#[error("soemthing went wrong: {0}")]
Expand Down
Loading

0 comments on commit 7194fb9

Please sign in to comment.