From cfa202a589c4dc32b464a33cd154a6a476ea9c12 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 25 Sep 2020 13:15:23 +0300 Subject: [PATCH] Set my_id synchronously. GitOrigin-RevId: 09c597b0c8cb4fc6bcb56582837c5b85700b6973 --- td/telegram/Td.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index bb09b531c..735494705 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -4166,6 +4166,8 @@ Status Td::init(DbKey key) { init_managers(); + G()->set_my_id(static_cast(G()->shared_config().get_option_integer("my_id"))); + storage_manager_ = create_actor("StorageManager", create_reference(), min(current_scheduler_id + 2, scheduler_count - 1)); G()->set_storage_manager(storage_manager_.get());