[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #13828 [Tor]: Refactor rend_cache_store_v2_desc_as_dir and rend_cache_store_v2_desc_as_client to avoid duplicate code
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs