[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Add v3bw files cleanup config opts as valid



commit 1725c6cc5a9ae7cdbd9e5427ef0ea448fa670a24
Author: juga0 <juga@xxxxxxxxxx>
Date:   Thu Jul 12 15:43:51 2018 +0000

    Add v3bw files cleanup config opts as valid
---
 sbws/util/config.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sbws/util/config.py b/sbws/util/config.py
index 7ba530e..a1d5a15 100644
--- a/sbws/util/config.py
+++ b/sbws/util/config.py
@@ -174,6 +174,8 @@ def _validate_cleanup(conf):
     ints = {
         'stale_days': {'minimum': 1, 'maximum': None},
         'rotten_days': {'minimum': 1, 'maximum': None},
+        'stale_mins_v3bw_files': {'minimum': 1, 'maximum': None},
+        'rotten_mins_v3bw_files': {'minimum': 1, 'maximum': None},
     }
     all_valid_keys = list(ints.keys())
     errors.extend(_validate_section_keys(conf, sec, all_valid_keys, err_tmpl))
@@ -187,6 +189,7 @@ def _validate_general(conf):
     err_tmpl = Template('$sec/$key ($val): $e')
     ints = {
         'data_period': {'minimum': 1, 'maximum': None},
+        'valid_mins_v3bw_files': {'minimum': 1, 'maximum': None},
         'circuit_timeout': {'minimum': 1, 'maximum': None},
     }
     floats = {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits