aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-10-28 07:47:47 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2009-12-17 09:15:06 +0100
commitd38268a8c7328a9f95beb76442f159bf27211271 (patch)
treeaed61cda6451c2504d05709b7cbe60bba41d5a84 /src/or/rendcommon.c
parent62c2a5a8838ac8eb97ab967e10e7a1e99d761d94 (diff)
downloadtor-d38268a8c7328a9f95beb76442f159bf27211271.tar.gz
tor-d38268a8c7328a9f95beb76442f159bf27211271.zip
Remove v0 hidden service statistics code.
The HSAuthorityRecordStats option was used to track statistics of overall hidden service usage on the version 0 hidden service authorities. With the version 2 hidden service directories being deployed and version 0 descriptors being phased out, these statistics are not as useful anymore. Goodbye, you fine piece of software; my first major code contribution to Tor.
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 5d18c6f64d..e4dc5b3d3c 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1005,7 +1005,6 @@ rend_cache_store(const char *desc, size_t desc_len, int published)
char query[REND_SERVICE_ID_LEN_BASE32+1];
char key[REND_SERVICE_ID_LEN_BASE32+2]; /* 0<query>\0 */
time_t now;
- or_options_t *options = get_options();
tor_assert(rend_cache);
parsed = rend_parse_service_descriptor(desc,desc_len);
if (!parsed) {
@@ -1040,10 +1039,6 @@ rend_cache_store(const char *desc, size_t desc_len, int published)
rend_service_descriptor_free(parsed);
return -1;
}
- /* report novel publication to statistics */
- if (published && options->HSAuthorityRecordStats) {
- hs_usage_note_publish_total(query, now);
- }
tor_snprintf(key, sizeof(key), "0%s", query);
e = (rend_cache_entry_t*) strmap_get_lc(rend_cache, key);
if (e && e->parsed->timestamp > parsed->timestamp) {
@@ -1063,10 +1058,6 @@ rend_cache_store(const char *desc, size_t desc_len, int published)
if (!e) {
e = tor_malloc_zero(sizeof(rend_cache_entry_t));
strmap_set_lc(rend_cache, key, e);
- /* report novel publication to statistics */
- if (published && options->HSAuthorityRecordStats) {
- hs_usage_note_publish_novel(query, now);
- }
} else {
rend_service_descriptor_free(e->parsed);
tor_free(e->desc);