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

Make client code generic over Client type #2135

Merged
merged 2 commits into from
May 22, 2023
Merged

Conversation

svyatonik
Copy link
Contributor

@svyatonik svyatonik commented May 16, 2023

closes #2133. Writing tests and proper TestingClient is not trivial, so I've extracted this to a separate issue #2413 2145. So let's this PR will be just about making relayer code generic over the Client type.

Please note that the code in substrate-relay folder still uses the CachingClient<RpcClient<C>> everywhere. That's because most of code there contains no any logic and there's nothing to test there. So only code in lib-substrate-relay is generic.

@svyatonik svyatonik changed the title Separate Substrate Client implementation to use in tests Make client code generic over Client type May 19, 2023
@svyatonik svyatonik marked this pull request as ready for review May 19, 2023 11:36
@svyatonik svyatonik merged commit 1a95216 into master May 22, 2023
@svyatonik svyatonik deleted the client-impl-for-tests branch May 22, 2023 08:24
svyatonik added a commit that referenced this pull request May 24, 2023
svyatonik added a commit that referenced this pull request May 24, 2023
* Revert "Make client code generic over Client type (#2135)"

This reverts commit 1a95216.

* Revert "Traitify Substrate client (#2129)"

This reverts commit 7e38a89.
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make relay code generic over client type
2 participants