Reduce Watchdog timeout to 0.25.

This commit is contained in:
levlam 2023-01-06 16:30:12 +03:00
parent 75caf1b0e7
commit 452a190094
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class ClientManager final : public td::Actor {
td::int64 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);

View File

@ -497,7 +497,7 @@ int main(int argc, char *argv[]) {
.release();
}
constexpr double WATCHDOG_TIMEOUT = 0.5;
constexpr double WATCHDOG_TIMEOUT = 0.25;
auto watchdog_id =
sched.create_actor_unsafe<Watchdog>(thread_count - 2, "Watchdog", td::this_thread::get_id(), WATCHDOG_TIMEOUT);