Improve continually_expire_circuits() to wake up when needed
Propose a solution for #158 (closed)
- Remove
continually_expire_circuits(). - Create function
spawn_expiration_taskthat lets the runtime schedule expiration task for the given circuit. This function is called in two places- in
launch(), schedule tasks that expire new circuits at theirunused_cutoff - in
get_or_launch(), schedule tasks that expire circuits aftermax_dirtinessif they are not used yet.
- in
Edited by yuan