diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-03 20:12:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-03 20:12:41 +0000 |
commit | bf2717ff3d02e1c8527d6e6c8f14349813ba0e72 (patch) | |
tree | 04adbaff4490763f3b91a27445a800287c48722b /src/or/rendclient.c | |
parent | c217be996d55560b6fbb2932ab498372306b2379 (diff) | |
download | tor-bf2717ff3d02e1c8527d6e6c8f14349813ba0e72.tar.gz tor-bf2717ff3d02e1c8527d6e6c8f14349813ba0e72.zip |
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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c index da86808f0c..b0fe325a92 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; } |