make static constant for decay interval

This commit is contained in:
Jeff Becker 2019-12-30 17:03:34 -05:00
parent 7c92805bb4
commit 472cee2594
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 5 additions and 1 deletions

View File

@ -9,8 +9,12 @@ namespace llarp
{
namespace path
{
static constexpr llarp_time_t DefaultPathBuildLimit = 500;
PathContext::PathContext(AbstractRouter* router)
: m_Router(router), m_AllowTransit(false), m_PathLimits(500)
: m_Router(router)
, m_AllowTransit(false)
, m_PathLimits(DefaultPathBuildLimit)
{
}