Closed krfricke closed 4 months ago
Thank you for your PR!
I have one change requested and once you resolve it, I will merge this PR and cut a new release.
Attention: Patch coverage is 50.00000%
with 6 lines
in your changes are missing coverage. Please review.
Project coverage is 81.99%. Comparing base (
bacc76d
) to head (c95f279
). Report is 2 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Thanks for the quick review. It's a good point, I've updated the PR. I've called the enum ControlPersist
, in line with the KnownHosts
struct. I also use a simple conversion which just gives a string in seconds (e.g. 5 minutes will be 300s
, and not 5m
). Let me know if you prefer we run some maths there to give a better human readable output.
Updated - please review my usage of Cow
. I believe with deref()
it should avoid allocations in the non-IdleFor cases.
All updated and moved to NonZeroUsize. Thanks for your help
The crate uses
ControlPersist=yes
per default. In practice we see the control processes around forever, and they are not reused across relaunches of the binary. So instead it would be nice to set the ControlPersist option to a custom value, so they can expire automatically after e.g. 5 minutes.