mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-24 11:45:51 +01:00
Reduce Watchdog timeout to 0.25.
This commit is contained in:
parent
75caf1b0e7
commit
452a190094
@ -76,7 +76,7 @@ class ClientManager final : public td::Actor {
|
|||||||
td::int64 tqueue_deleted_events_ = 0;
|
td::int64 tqueue_deleted_events_ = 0;
|
||||||
td::int64 last_tqueue_deleted_events_ = 0;
|
td::int64 last_tqueue_deleted_events_ = 0;
|
||||||
|
|
||||||
static constexpr double WATCHDOG_TIMEOUT = 0.5;
|
static constexpr double WATCHDOG_TIMEOUT = 0.25;
|
||||||
|
|
||||||
static td::int64 get_tqueue_id(td::int64 user_id, bool is_test_dc);
|
static td::int64 get_tqueue_id(td::int64 user_id, bool is_test_dc);
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ int main(int argc, char *argv[]) {
|
|||||||
.release();
|
.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr double WATCHDOG_TIMEOUT = 0.5;
|
constexpr double WATCHDOG_TIMEOUT = 0.25;
|
||||||
auto watchdog_id =
|
auto watchdog_id =
|
||||||
sched.create_actor_unsafe<Watchdog>(thread_count - 2, "Watchdog", td::this_thread::get_id(), WATCHDOG_TIMEOUT);
|
sched.create_actor_unsafe<Watchdog>(thread_count - 2, "Watchdog", td::this_thread::get_id(), WATCHDOG_TIMEOUT);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user