mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-03 17:40:13 +00:00
Sync changes.
This commit is contained in:
parent
ca249f1f1c
commit
e759ccf385
7 changed files with 11 additions and 9 deletions
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include "App.h"
|
||||
#include "base/io/log/Log.h"
|
||||
#include "core/Config.h"
|
||||
#include "core/config/Config.h"
|
||||
#include "core/Controller.h"
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
#include <uv.h>
|
||||
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include "3rdparty/http-parser/http_parser.h"
|
||||
#include "api/Api.h"
|
||||
#include "api/interfaces/IApiListener.h"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#define XMRIG_APIROUTER_H
|
||||
|
||||
|
||||
#include "net/NetworkState.h"
|
||||
#include "api/interfaces/IApiListener.h"
|
||||
#include "rapidjson/fwd.h"
|
||||
|
||||
|
@ -43,7 +42,7 @@ class Controller;
|
|||
class ApiRouter : public xmrig::IApiListener
|
||||
{
|
||||
public:
|
||||
ApiRouter(xmrig::Controller *controller);
|
||||
ApiRouter(Controller *controller);
|
||||
~ApiRouter() override;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <uv.h>
|
||||
#include <sstream>
|
||||
#include <string.h>
|
||||
#include <uv.h>
|
||||
|
||||
|
||||
#include "3rdparty/http-parser/http_parser.h"
|
||||
|
|
|
@ -195,6 +195,8 @@ void xmrig::Controller::start()
|
|||
# ifdef XMRIG_FEATURE_API
|
||||
api()->start();
|
||||
# endif
|
||||
|
||||
save();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
#include "base/kernel/interfaces/IConfigListener.h"
|
||||
|
||||
|
||||
class StatsData;
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
|
|
|
@ -207,8 +207,6 @@ void Workers::start(xmrig::Controller *controller)
|
|||
m_workers.push_back(handle);
|
||||
handle->start(Workers::onReady);
|
||||
}
|
||||
|
||||
controller->save();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue