aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-03 20:12:41 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-03 20:12:41 +0000
commitbf2717ff3d02e1c8527d6e6c8f14349813ba0e72 (patch)
tree04adbaff4490763f3b91a27445a800287c48722b /src/or/rendclient.c
parentc217be996d55560b6fbb2932ab498372306b2379 (diff)
downloadtor-bf2717ff3d02e1c8527d6e6c8f14349813ba0e72.tar
tor-bf2717ff3d02e1c8527d6e6c8f14349813ba0e72.tar.gz
r14678@tombo: nickm | 2007-11-03 16:12:31 -0400
Try to make hidden service directory lookup functions a bit more efficient: go for fewer O(n) operations, and look at the consensus rather than the routerinfo list. svn:r12361
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index da86808f0..b0fe325a9 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -288,7 +288,6 @@ rend_client_refetch_v2_renddesc(const char *query)
{
char descriptor_id[DIGEST_LEN];
int replica;
- smartlist_t *hs_dirs;
tor_assert(query);
tor_assert(strlen(query) == REND_SERVICE_ID_LEN);
/* Are we configured to fetch descriptors? */
@@ -306,9 +305,7 @@ rend_client_refetch_v2_renddesc(const char *query)
"descriptor ID did not succeed.");
return;
}
- hs_dirs = hid_serv_create_routing_table();
- directory_get_from_hs_dir(descriptor_id, query, hs_dirs);
- smartlist_free(hs_dirs);
+ directory_get_from_hs_dir(descriptor_id, query);
return;
}