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

fix: Peer and PeerSyncData structs #9

Merged
merged 3 commits into from
Dec 25, 2023

Conversation

Lynnesbian
Copy link
Contributor

@Lynnesbian Lynnesbian commented Dec 23, 2023

Similarly to the changes made in #8, these commits make the full_update field in PeerSyncData optional. In addition, I've added the missing peers_removed field, which behaves similarly to the other *_removed fields in SyncData (in this case, it's a list of socket addresses to remove).

Also, the Peer struct incorrectly defined progress as an Option<u64>, when it should be an Option<f64> (between 0.0 and 1.0, representing 0% and 100% completion).

@Lynnesbian Lynnesbian changed the title fix: PeerSyncData struct fix: Peer and PeerSyncData structs Dec 24, 2023
@George-Miao George-Miao merged commit 7bea5bb into George-Miao:master Dec 25, 2023
1 check passed
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