From efd9bdb4f682b28f9ed2fd4ac8e9c425af651cf7 Mon Sep 17 00:00:00 2001 From: wuxiaodong02 Date: Sat, 17 Dec 2022 16:56:47 +0800 Subject: [PATCH] Reduce the maximum number of enable retries Signed-off-by: wuxiaodong02 --- .../src/componentmanager/component_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/distributedhardwarefwkservice/src/componentmanager/component_manager.cpp b/services/distributedhardwarefwkservice/src/componentmanager/component_manager.cpp index cef49c72..dc6b24f4 100644 --- a/services/distributedhardwarefwkservice/src/componentmanager/component_manager.cpp +++ b/services/distributedhardwarefwkservice/src/componentmanager/component_manager.cpp @@ -52,8 +52,8 @@ namespace DistributedHardware { IMPLEMENT_SINGLE_INSTANCE(ComponentManager); namespace { - constexpr int32_t ENABLE_RETRY_MAX_TIMES = 30; - constexpr int32_t DISABLE_RETRY_MAX_TIMES = 30; + constexpr int32_t ENABLE_RETRY_MAX_TIMES = 5; + constexpr int32_t DISABLE_RETRY_MAX_TIMES = 5; constexpr int32_t ENABLE_PARAM_RETRY_TIME = 500 * 1000; constexpr int32_t INVALID_SA_ID = -1; constexpr int32_t MONITOR_TASK_DELAY_MS = 5 * 1000; -- Gitee