Skip to content

add client method to GenericClient #724

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

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

vemoo
Copy link
Contributor

@vemoo vemoo commented Dec 26, 2020

Closes #691

As I mentioned in the issue my reasoning is that methods that don't need to create transactions can take &Client and avoid having to deal with generics or Box and the overhead of async_trait boxed futures. This way a method that takes &Client can be called when you have a impl GenericClient.

@sfackler sfackler merged commit a8ac31a into sfackler:master Apr 5, 2021
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.

add Deref to Client for Transaction
2 participants