diff --git a/include/llarp.hpp b/include/llarp.hpp index 7d0de11cd..f7d04a002 100644 --- a/include/llarp.hpp +++ b/include/llarp.hpp @@ -11,7 +11,7 @@ namespace llarp { struct Context { - Context(std::ostream &out, bool signleThread = false); + Context(bool signleThread = false); ~Context(); int num_nethreads = 1; diff --git a/llarp/context.cpp b/llarp/context.cpp index 1fc70384e..3c036e4c6 100644 --- a/llarp/context.cpp +++ b/llarp/context.cpp @@ -12,8 +12,8 @@ namespace llarp { - Context::Context(std::ostream &o, bool singleThread) - : singleThreaded(singleThread), out(o) + Context::Context(bool singleThread) + : singleThreaded(singleThread), out(std::cout) { llarp::LogInfo(LLARP_VERSION, " ", LLARP_RELEASE_MOTTO); } @@ -311,7 +311,7 @@ llarp_main_init(const char *fname, bool multiProcess) cSetLogLevel(eLogDebug); } llarp_main *m = new llarp_main; - m->ctx.reset(new llarp::Context(std::cout, !multiProcess)); + m->ctx.reset(new llarp::Context(!multiProcess)); if(!m->ctx->LoadConfig(fname)) { m->ctx->Close();