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

Add network_utils directory and move network/transport into it #304

Merged
merged 1 commit into from
Jan 29, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Jan 29, 2022

This is the first step towards refactoring client code.
To start, we should separate the network utility functions with the client/server setups.
This PR does the following:

  1. Create network_utils directory, and move network.rs and transport.rs into it (along with transport tests).
  2. Within network.rs, move the part that implements AuthorityClient into client.rs so that it's together with the struct definition; move MassClient out to a separate file as it's completely independent; Rename the rest of network.rs to server_lib.rs as it now only contains server related stuff.

Next step:
We will start to rename the Client in network.rs, and also separate out network vs non-network stuff in server_lib.

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 re-org which makes code navigation much more reasonable. Many thanks!

@lxfind lxfind force-pushed the separate-network-dir branch 2 times, most recently from 0164a4a to 807e0b8 Compare January 29, 2022 21:02
@lxfind lxfind force-pushed the separate-network-dir branch from 807e0b8 to 163b8cc Compare January 29, 2022 22:57
@lxfind lxfind merged commit e856db7 into main Jan 29, 2022
@lxfind lxfind deleted the separate-network-dir branch February 1, 2022 00:45
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.

3 participants