diff options
| author | levlam <levlam@telegram.org> | 2025-05-07 18:29:47 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-05-07 18:29:47 +0300 |
| commit | 059e4c631cd9bfcc190ba50d957be17503d2242c (patch) | |
| tree | c2922ce73211eed4396f3e7ed380218e659a1ca8 | |
| parent | 41288d59a00a6f1dc4f27ebef3f56db723766cf5 (diff) | |
Minor improvements.
| -rw-r--r-- | td/generate/scheme/td_api.tl | 2 | ||||
| -rw-r--r-- | td/telegram/GroupCallManager.cpp | 1 | ||||
| -rw-r--r-- | td/telegram/StarGiftManager.cpp | 2 | ||||
| -rw-r--r-- | tdactor/td/actor/impl/Scheduler.cpp | 32 | ||||
| -rw-r--r-- | tdutils/test/ChainScheduler.cpp | 4 |
5 files changed, 21 insertions, 20 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index bb7c2190e..de80e4799 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -7976,7 +7976,7 @@ suggestedActionExtendStarSubscriptions = SuggestedAction; //@name Unique name of the suggestion //@title Title of the suggestion //@param_description Description of the suggestion -//@url Link to open when the suggestion is clicked +//@url The link to open when the suggestion is clicked suggestedActionCustom name:string title:formattedText description:formattedText url:string = SuggestedAction; diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp index d6a953635..56937bebe 100644 --- a/td/telegram/GroupCallManager.cpp +++ b/td/telegram/GroupCallManager.cpp @@ -52,7 +52,6 @@ template <class T> T tde2e_move_as_ok_impl(tde2e_api::Result<T> result, int line) { LOG_CHECK(result.is_ok()) << static_cast<int>(result.error().code) << " : " << result.error().message << " at line " << line; - ; return std::move(result.value()); } diff --git a/td/telegram/StarGiftManager.cpp b/td/telegram/StarGiftManager.cpp index 16ba95a6d..d14c518a1 100644 --- a/td/telegram/StarGiftManager.cpp +++ b/td/telegram/StarGiftManager.cpp @@ -39,6 +39,8 @@ #include "td/utils/Random.h" #include "td/utils/Status.h" +#include <algorithm> + namespace td { class GetStarGiftsQuery final : public Td::ResultHandler { diff --git a/tdactor/td/actor/impl/Scheduler.cpp b/tdactor/td/actor/impl/Scheduler.cpp index c7bb795d2..0fc4d3545 100644 --- a/tdactor/td/actor/impl/Scheduler.cpp +++ b/tdactor/td/actor/impl/Scheduler.cpp @@ -544,22 +544,22 @@ void Scheduler::run_mailbox() { } VLOG(actor) << "Run mailbox : finish " << actor_count_; - //Useful for debug, but O(ActorsCount) check - - //int cnt = 0; - //for (ListNode *end = &pending_actors_list_, *it = pending_actors_list_.next; it != end; it = it->next) { - //cnt++; - //auto actor_info = ActorInfo::from_list_node(it); - //LOG(ERROR) << *actor_info; - //CHECK(actor_info->mailbox_.empty()); - //CHECK(!actor_info->is_running()); - //} - //for (ListNode *end = &ready_actors_list_, *it = ready_actors_list_.next; it != end; it = it->next) { - //auto actor_info = ActorInfo::from_list_node(it); - //LOG(ERROR) << *actor_info; - //cnt++; - //} - //LOG_CHECK(cnt == actor_count_) << cnt << " vs " << actor_count_; + // Useful for debug, but O(ActorCount) check + + // int cnt = 0; + // for (ListNode *end = &pending_actors_list_, *it = pending_actors_list_.next; it != end; it = it->next) { + // cnt++; + // auto actor_info = ActorInfo::from_list_node(it); + // LOG(ERROR) << *actor_info; + // CHECK(actor_info->mailbox_.empty()); + // CHECK(!actor_info->is_running()); + // } + // for (ListNode *end = &ready_actors_list_, *it = ready_actors_list_.next; it != end; it = it->next) { + // auto actor_info = ActorInfo::from_list_node(it); + // LOG(ERROR) << *actor_info; + // cnt++; + // } + // LOG_CHECK(cnt == actor_count_) << cnt << " vs " << actor_count_; } Timestamp Scheduler::run_timeout() { diff --git a/tdutils/test/ChainScheduler.cpp b/tdutils/test/ChainScheduler.cpp index 8194d4b73..ccd2ae57a 100644 --- a/tdutils/test/ChainScheduler.cpp +++ b/tdutils/test/ChainScheduler.cpp @@ -219,8 +219,8 @@ TEST(ChainScheduler, Stress) { flush_pending_queries(); // LOG(INFO) << scheduler; } - LOG(INFO) << "Sent queries count " << sent_cnt; - LOG(INFO) << "Total queries " << current_query_id; + LOG(INFO) << "Sent number of queries: " << sent_cnt; + LOG(INFO) << "Total number of queries: " << current_query_id; for (auto &chain : chains) { int prev_ok = -1; int failed_cnt = 0; |
