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

Remove old ingress messages and add NoOpConnector for Dev mode #723

Merged
merged 2 commits into from Apr 21, 2023

Conversation

Gauthamastro
Copy link
Member

@Gauthamastro Gauthamastro commented Apr 20, 2023

  1. Removes unwanted ingress message
  2. Adds NoOpConnector for Thea for --dev mode
  3. Store worker nonce on snapshot

@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Patch coverage: 24.00% and project coverage change: -0.04 ⚠️

Comparison is base (14aef52) 48.11% compared to head (67e0834) 48.07%.

Additional details and impacted files
@@             Coverage Diff             @@
##           Develop     #723      +/-   ##
===========================================
- Coverage    48.11%   48.07%   -0.04%     
===========================================
  Files           65       64       -1     
  Lines         4951     4965      +14     
===========================================
+ Hits          2382     2387       +5     
- Misses        2569     2578       +9     
Impacted Files Coverage Δ
clients/thea/src/connector/traits.rs 0.00% <0.00%> (ø)
clients/thea/src/lib.rs 0.00% <0.00%> (ø)
clients/thea/src/worker.rs 62.50% <ø> (ø)
pallets/ocex/src/benchmarking.rs 0.00% <ø> (ø)
primitives/orderbook/src/types.rs 29.26% <ø> (ø)
primitives/polkadex/src/fees.rs 100.00% <ø> (ø)
primitives/polkadex/src/ingress.rs 50.00% <ø> (ø)
primitives/polkadex/src/lib.rs 100.00% <ø> (+60.00%) ⬆️
primitives/polkadex/src/ocex.rs 61.90% <ø> (ø)
clients/orderbook/src/worker.rs 44.84% <54.54%> (+0.13%) ⬆️

... and 1 file with indirect coverage changes

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Gauthamastro Gauthamastro merged commit 1674cfb into Develop Apr 21, 2023
3 checks passed
@Gauthamastro Gauthamastro deleted the gj/cleanup-primitives branch April 21, 2023 04:05
@serhii-temchenko serhii-temchenko added the A0-PleaseReview Pull request needs code review. label Apr 21, 2023
ChainType::Development => Connector { connector: Arc::new(NoOpConnector) },
_ => Connector {
connector: Arc::new(
ParachainClient::connect("ws://127.0.0.1:9945".to_string())
Copy link
Contributor

Choose a reason for hiding this comment

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

As mentioned here - I think such values should not be hardcoded.

connector: Arc<dyn ForeignConnector>,
}

pub async fn get_connector(chain_type: ChainType) -> Connector {
Copy link
Contributor

Choose a reason for hiding this comment

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

Semantically more proper name would be - resolve_connector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-PleaseReview Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants