[tor-bugs] #17824 [metrics-lib]: switch on string instead of many if-else with String comparison

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Dec 24 13:43:58 UTC 2015


#17824: switch on string instead of many if-else with String comparison
-------------------------+------------------------------
 Reporter:  iwakeh       |          Owner:  karsten
     Type:  enhancement  |         Status:  needs_review
 Priority:  Low          |      Milestone:
Component:  metrics-lib  |        Version:
 Severity:  Minor        |     Resolution:
 Keywords:               |  Actual Points:
Parent ID:  #17822       |         Points:
  Sponsor:               |
-------------------------+------------------------------

Comment (by karsten):

 I just pushed another commit to that branch which adds `getHostname()`
 methods to `DirSourceEntry` and `RelayNetworkStatusVote`.  It's a trivial
 change and probably doesn't require much review, but I thought I'd mention
 it here before merging it together with the other changes.  Let me know if
 it breaks something I didn't think of.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17824#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list