mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-28 21:08:01 +00: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 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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user