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

Move AuthorityClient to a separate file #328

Merged
merged 1 commit into from
Feb 1, 2022
Merged

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Feb 1, 2022

This PR does the following:

  1. Move AuthorityClient to its own file for clarity.
  2. Rename AuthorityClient trait to AuthorityAPI, to better indicate that it's a trait interface.
  3. Instead of implementing AuthorityAPI for network::Client, which is confusing, now we properly introduce AuthorityClient, which is a thin wrapper of network::Client. This is also consistent with how we define LocalAuthorityClient in client_tests.

Copy link
Collaborator

@gdanezis gdanezis left a comment

Choose a reason for hiding this comment

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

Nice to see the client.rs structured.

@lxfind lxfind merged commit 39c1f83 into main Feb 1, 2022
@lxfind lxfind deleted the separate-authority-client branch February 1, 2022 16:11
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.

2 participants