Reduce Watchdog timeout to 0.25.
This commit is contained in:
parent
41c2dc7549
commit
ac2641dd06
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue