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:
parent
54f9e1b44e
commit
ed707eecf9
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue