Bug 29085: Refactor non-padding accounting out of token removal.
commit010779176bb959c8106a95806ede2c80b4397f60
authorMike Perry <mikeperry-git@torproject.org>
Sat, 11 May 2019 02:51:14 +0000 (11 02:51 +0000)
committerMike Perry <mikeperry-git@torproject.org>
Wed, 15 May 2019 04:57:11 +0000 (15 04:57 +0000)
tree0caeda77c5bda7a31088794e48a39c307642e779
parent43d41194546dbf6a634648d592e97ccd10b04fda
Bug 29085: Refactor non-padding accounting out of token removal.

This commit moves the padding state limit checks and the padding rate limit
checks out of the token removal codepath, and causes all three functions to
get called from a single circpad_machine_count_nonpadding_sent() function.

It does not change functionality.
src/core/or/circuitpadding.c
src/core/or/circuitpadding.h