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

#21349: Refactor long functions in entrynodes.c (2) #200

Closed
wants to merge 9 commits into from

Conversation

Labels
None yet
Projects
None yet
4 participants
@rl1987
Copy link
Contributor

@rl1987 rl1987 commented Jul 2, 2018

https://trac.torproject.org/projects/tor/ticket/21349

@coveralls
Copy link

@coveralls coveralls commented Jul 2, 2018

Coverage Status

Coverage increased (+0.03%) to 59.529% when pulling 870dab7 on rl1987:ticket21349_2 into 2e5eb02 on torproject:master.

@@ -407,6 +404,13 @@ get_remove_unlisted_guards_after_days(void)
DFLT_REMOVE_UNLISTED_GUARDS_AFTER_DAYS,
1, 365*10);
}

static time_t
Copy link
Member

@asn-d6 asn-d6 Jul 2, 2018

Please add the trivial func doc here.

Copy link
Contributor Author

@rl1987 rl1987 Jul 3, 2018

Fixed - 9a3d655.

@@ -1411,11 +1413,11 @@ sampled_guards_update_from_consensus(guard_selection_t *gs)
approx_time() - get_guard_confirmed_min_lifetime();

/* Then: remove the ones that have been junk for too long */
n_changes +=
sampled_guards_prune_obsolete_entries(gs,
Copy link
Member

@asn-d6 asn-d6 Jul 2, 2018

Please intend the code here! :)

Copy link
Contributor Author

@rl1987 rl1987 Jul 3, 2018

Fixed in 870dab7.

@tlyu
Copy link
Contributor

@tlyu tlyu commented Jul 25, 2018

Superseded by #246.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment