From 063e0393523e5286cfbc5ac0c23a2a15b9ad3033 Mon Sep 17 00:00:00 2001 From: gaojiaqi Date: Mon, 14 Oct 2024 10:12:23 +0800 Subject: [PATCH] test Signed-off-by: gaojiaqi --- services/ans/src/advanced_notification_service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 276e0ebbc..8cbe3f0da 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -907,6 +907,7 @@ ErrCode AdvancedNotificationService::UpdateInNotificationList(const std::shared_ { std::chrono::system_clock::time_point now = std::chrono::system_clock::now(); NotificationAnalyticsUtil::RemoveExpired(flowControlUpdateTimestampList_, now); + printf("size: %d\n", static_cast(flowControlUpdateTimestampList_.size())); if (flowControlUpdateTimestampList_.size() >= MAX_UPDATE_NUM_PERSECOND) { return ERR_ANS_OVER_MAX_UPDATE_PERSECOND; } -- Gitee