From 00a02a3a59f6e44619e6caed150b001acae37231 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 3 Feb 2017 15:30:46 -0500 Subject: prop224: Service v3 descriptor creation and logic This commit adds the functionality for a service to build its descriptor. Also, a global call to build all descriptors for all services is added to the service scheduled events. Signed-off-by: David Goulet --- src/or/rendservice.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/or/rendservice.c') diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 98ed1100ec..4641e110d8 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -3983,10 +3983,9 @@ rend_max_intro_circs_per_period(unsigned int n_intro_points_wanted) * This is called once a second by the main loop. */ void -rend_consider_services_intro_points(void) +rend_consider_services_intro_points(time_t now) { int i; - time_t now; const or_options_t *options = get_options(); /* Are we in single onion mode? */ const int allow_direct = rend_service_allow_non_anonymous_connection( @@ -4003,7 +4002,6 @@ rend_consider_services_intro_points(void) exclude_nodes = smartlist_new(); retry_nodes = smartlist_new(); - now = time(NULL); SMARTLIST_FOREACH_BEGIN(rend_service_list, rend_service_t *, service) { int r; -- cgit v1.2.3-54-g00ecf