Merge pull request #1120 from notlesh/fix-the-build-2020-02-21

Fix the build
pull/1121/head
Jeff 4 years ago committed by GitHub
commit 9c0f230dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,7 +24,9 @@ namespace llarp
{
Path::Path(const std::vector< RouterContact >& h, PathSet* parent,
PathRole startingRoles, std::string shortName)
: m_PathSet(parent), _role(startingRoles), m_shortName(std::move(shortName))
: m_PathSet(parent)
, _role(startingRoles)
, m_shortName(std::move(shortName))
{
hops.resize(h.size());

@ -441,7 +441,8 @@ namespace llarp
auto self = GetSelf();
ctx->pathset = self;
std::string path_shortName = "[path " + m_router->ShortName() + "-";
path_shortName = path_shortName + std::to_string(m_router->NextPathBuildNumber()) + "]";
path_shortName = path_shortName
+ std::to_string(m_router->NextPathBuildNumber()) + "]";
auto path = std::make_shared< path::Path >(hops, self.get(), roles,
std::move(path_shortName));
LogInfo(Name(), " build ", path->ShortName(), ": ", path->HopsString());

Loading…
Cancel
Save