From e9292e73fc6ffd68b9694b96d0a55c4fbe5af972 Mon Sep 17 00:00:00 2001 From: zhangmingxiang Date: Mon, 10 Apr 2023 15:35:51 +0800 Subject: [PATCH] modify review opinion Signed-off-by: zhangmingxiang Change-Id: I0cd900bb24b9ec60453770fa1b0450b082523ef8 --- .../dtbabilitymgr/src/distributed_ability_manager_dumper.cpp | 4 ++-- services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/services/dtbabilitymgr/src/distributed_ability_manager_dumper.cpp b/services/dtbabilitymgr/src/distributed_ability_manager_dumper.cpp index 41c7fa2c..c2065ba9 100644 --- a/services/dtbabilitymgr/src/distributed_ability_manager_dumper.cpp +++ b/services/dtbabilitymgr/src/distributed_ability_manager_dumper.cpp @@ -69,8 +69,8 @@ bool DistributedAbilityManagerDumper::CanDump() bool DistributedAbilityManagerDumper::DumpDefault(std::string& result) { - result.append("ContinuationManagerService Dump\n"); - result.append("\n"); + result.append("ContinuationManagerService Dump\n") + .append("\n"); ShowAppRegisterInfo(result); return true; } diff --git a/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp b/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp index 261b8329..df42544a 100644 --- a/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp +++ b/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp @@ -32,6 +32,7 @@ using namespace DistributedHardware; namespace { constexpr int32_t RETRY_REGISTER_CALLBACK_TIMES = 5; +constexpr int32_t RETRY_REGISTER_CALLBACK_DELAY_TIME = 1000; // 1s const std::string PKG_NAME = "DBinderBus_Dms_" + std::to_string(getpid()); constexpr int32_t NON_ANONYMIZED_LENGTH = 6; @@ -127,7 +128,7 @@ bool DnetworkAdapter::AddDeviceChangeListener(const std::shared_ptr