[tor-bugs] #13828 [Tor]: Refactor rend_cache_store_v2_desc_as_dir and rend_cache_store_v2_desc_as_client to avoid duplicate code
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Nov 23 21:57:46 UTC 2014
#13828: Refactor rend_cache_store_v2_desc_as_dir and
rend_cache_store_v2_desc_as_client to avoid duplicate code
------------------------------------+------------------------------------
Reporter: arma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Tor: 0.2.6.x-final
Component: Tor | Version:
Keywords: SponsorR, tor-hs, easy | Actual Points:
Parent ID: | Points:
------------------------------------+------------------------------------
There's a lot of overlapping code here in terms of checking the timestamp
on the parsed descriptor, checking if we have a newer one already,
creating and linking the new entry, etc. It's not exactly the same but a
lot of it sure is similar. This is the sort of situation where a
subfunction to do the shared behavior might be handy.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13828>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list