mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-22 01:49:24 +00:00
Compare commits
1 Commits
5b4bdec9e1
...
73de846fc9
Author | SHA1 | Date | |
---|---|---|---|
|
73de846fc9 |
@ -6666,7 +6666,7 @@ void Client::check_business_connection_chat_id(const td::string &business_connec
|
||||
}
|
||||
auto chat_id = r_chat_id.move_as_ok();
|
||||
check_business_connection(business_connection_id, std::move(query),
|
||||
[chat_id, on_success = std::move(on_success)](
|
||||
[this, chat_id, on_success = std::move(on_success)](
|
||||
const BusinessConnection *business_connection, PromisedQueryPtr query) mutable {
|
||||
on_success(business_connection, chat_id, std::move(query));
|
||||
});
|
||||
|
@ -23,9 +23,6 @@ ServerCpuStat::ServerCpuStat() {
|
||||
void ServerCpuStat::update(double now) {
|
||||
auto r_cpu_stat = td::cpu_stat();
|
||||
if (r_cpu_stat.is_error()) {
|
||||
if (r_cpu_stat.error().message() != "Not supported") {
|
||||
LOG(ERROR) << "Failed to get CPU statistics: " << r_cpu_stat.error();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user