From ed31cdaacfbca20bcdc3f10ddc20fef089de836d Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Thu, 14 May 2020 11:51:27 -0600 Subject: [PATCH] Cosmetic fixes --- llarp/config/config.cpp | 3 +-- llarp/service/endpoint.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/llarp/config/config.cpp b/llarp/config/config.cpp index 8aec996dc..d6a8ba21c 100644 --- a/llarp/config/config.cpp +++ b/llarp/config/config.cpp @@ -161,8 +161,7 @@ namespace llarp conf.defineOption( "network", "strict-connect", false, "", AssignmentAcceptor(m_strictConnect)); - conf.defineOption( - "network", "keyfile", false, "", [this](std::string arg) { m_keyfile = arg; }); + conf.defineOption("network", "keyfile", false, "", AssignmentAcceptor(m_keyfile)); conf.defineOption( "network", "reachable", false, ReachableDefault, AssignmentAcceptor(m_reachable)); diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 636cfc430..8095df70b 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -51,7 +51,7 @@ namespace llarp if (conf.m_hops) numHops = conf.m_hops; - return m_state->Configure(std::move(conf)); + return m_state->Configure(conf); } llarp_ev_loop_ptr