1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

change granularity to seconds

This commit is contained in:
Jeff Becker 2021-05-01 17:22:57 -04:00
parent 54f9e1b44e
commit ed707eecf9
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -664,14 +664,14 @@ namespace llarp
"path-alignment-timeout",
ClientOnly,
Comment{
"time in milliseconds how long to wait for a path to align to pivot routers",
"time in seconds how long to wait for a path to align to pivot routers",
"if not provided a sensible default will be used",
},
[this](int val) {
if (val <= 200)
if (val <= 0)
throw std::invalid_argument{
"invalid path alignment timeout: " + std::to_string(val) + " <= 200"};
m_PathAlignmentTimeout = std::chrono::milliseconds{val};
"invalid path alignment timeout: " + std::to_string(val) + " <= 0"};
m_PathAlignmentTimeout = std::chrono::seconds{val};
});
// Deprecated options: