diff options
author | Roger Dingledine <arma@torproject.org> | 2007-10-10 23:11:53 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-10-10 23:11:53 +0000 |
commit | dd920354c2e23e80951c1e3a41be70d1945f9d53 (patch) | |
tree | 6f0a8e12847f1d221fc08565d54795eddc9a8edc /src/or/dirserv.c | |
parent | 919f421c6c75c1fc919365d5b91e3a5c888112aa (diff) | |
download | tor-dd920354c2e23e80951c1e3a41be70d1945f9d53.tar.gz tor-dd920354c2e23e80951c1e3a41be70d1945f9d53.zip |
let bridge authorities write bridge descriptors to their
cached-descriptors* files.
nick, did i get this right?
svn:r11855
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index b849fd90b8..4040bf5b32 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -557,18 +557,6 @@ dirserv_add_multiple_descriptors(const char *desc, uint8_t purpose, annotation_buf)) { SMARTLIST_FOREACH(list, routerinfo_t *, ri, { msg_out = NULL; - - /* Assign the purpose. - * - * XXX020 Perhaps this should get pushed into - * router_parse_list_from_string()? Also, tie it somehow into - * router_load_single_router()? Lastly, does extrainfo_t want - * a purpose field too, or can we just piggyback off the one - * in routerinfo_t? */ - tor_assert(ri->purpose == purpose); - if (purpose != ROUTER_PURPOSE_GENERAL) /*XXXXX020 wrong. */ - ri->cache_info.do_not_cache = 1; - r_tmp = dirserv_add_descriptor(ri, &msg_out); if (r_tmp < r) { r = r_tmp; @@ -585,10 +573,6 @@ dirserv_add_multiple_descriptors(const char *desc, uint8_t purpose, SMARTLIST_FOREACH(list, extrainfo_t *, ei, { msg_out = NULL; - /* XXX020 see above note on purpose fields */ - if (purpose != ROUTER_PURPOSE_GENERAL) - ei->cache_info.do_not_cache = 1; - r_tmp = dirserv_add_extrainfo(ei, &msg_out); if (r_tmp < r) { r = r_tmp; |