[tor-bugs] #22279 [Metrics/metrics-lib]: simplify and avoid repetition in ParserHelper methods

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon May 29 14:15:29 UTC 2017


#22279: simplify and avoid repetition in ParserHelper methods
---------------------------------+-----------------------------------
 Reporter:  iwakeh               |          Owner:  karsten
     Type:  enhancement          |         Status:  needs_review
 Priority:  Medium               |      Milestone:  metrics-lib 1.8.0
Component:  Metrics/metrics-lib  |        Version:
 Severity:  Normal               |     Resolution:
 Keywords:                       |  Actual Points:
Parent ID:                       |         Points:
 Reviewer:                       |        Sponsor:
---------------------------------+-----------------------------------

Comment (by karsten):

 We'll have to represent the case of an empty key-value list somehow.  For
 example `"dirreq-v2-reqs "` contains zero key-value elements, which we
 want to represent somehow.  And it's different from an omitted
 `dirreq-v2-reqs` line.  I mean, we could imagine doing this differently in
 the future, but I tried to leave the current behavior unchanged for now.
 What did you have in mind here?

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


More information about the tor-bugs mailing list