提交 3f16cd34 authored 作者: blu's avatar blu

dingbot

上级 b0af1fc8
...@@ -1375,6 +1375,21 @@ protected: ...@@ -1375,6 +1375,21 @@ protected:
public: public:
void run() void run()
{ {
// issue check
thread th=thread([this]{
while(1){
// check every 5 minutes
this_thread::sleep_for(chrono::seconds(5));
{
lock_guard<recursive_mutex> lg(mutIpcStatus);
for(auto &[k,v]: this->peerData["ipcStatus"].items()){
issueChecker(k, v);
}
}
}
});
svr.Get("/config", [this](const Request& req, Response& res) { svr.Get("/config", [this](const Request& req, Response& res) {
json ret; json ret;
ret["code"] = 0; ret["code"] = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论