Don't populate path nodes too much.

This commit is contained in:
irungentoo 2014-12-24 10:02:53 -05:00
parent eb033755a0
commit d8b0d2e19b
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -1266,8 +1266,6 @@ static void do_announce(Onion_Client *onion_c)
} }
} }
#define NODE_POPULATE_TIMES 4
void do_onion_client(Onion_Client *onion_c) void do_onion_client(Onion_Client *onion_c)
{ {
unsigned int i; unsigned int i;
@ -1275,8 +1273,7 @@ void do_onion_client(Onion_Client *onion_c)
if (onion_c->last_run == unix_time()) if (onion_c->last_run == unix_time())
return; return;
for (i = 0; i < NODE_POPULATE_TIMES; ++i) populate_path_nodes(onion_c);
populate_path_nodes(onion_c);
do_announce(onion_c); do_announce(onion_c);