diff --git a/services/distributed/include/soft_bus/distributed_publish_service.h b/services/distributed/include/soft_bus/distributed_publish_service.h index d05d93cd9dc40be1b70d1b014ed6e17498d55fce..ff779ab5e23386d96544d91313b9561382af9385 100644 --- a/services/distributed/include/soft_bus/distributed_publish_service.h +++ b/services/distributed/include/soft_bus/distributed_publish_service.h @@ -43,7 +43,7 @@ public: std::string hashCodes, std::string slotTypes); #ifdef DISTRIBUTED_FEATURE_MASTER - void RemoveAllDistributedNotificaions(DistributedDeviceInfo& deviceInfo); + void RemoveAllDistributedNotifications(DistributedDeviceInfo& deviceInfo); void SyncLiveViewNotification(const DistributedDeviceInfo peerDevice, bool isForce); void SendNotifictionRequest(const std::shared_ptr request, const DistributedDeviceInfo& peerDevice, bool isSyncNotification = false); diff --git a/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp b/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp index 9d2660202d4ffd7b4c1d723b76dcda313eaca320..eca4c9da575d104136b449a17a164eabcd148e13 100644 --- a/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp +++ b/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp @@ -212,7 +212,7 @@ void DistributedPublishService::OnRemoveNotifications(const DistributedDeviceInf } #ifdef DISTRIBUTED_FEATURE_MASTER -void DistributedPublishService::RemoveAllDistributedNotificaions(DistributedDeviceInfo& deviceInfo) +void DistributedPublishService::RemoveAllDistributedNotifications(DistributedDeviceInfo& deviceInfo) { std::shared_ptr removeBox = std::make_shared(); @@ -225,7 +225,7 @@ void DistributedPublishService::RemoveAllDistributedNotificaions(DistributedDevi ANS_LOGW("dans OnCanceled serialize failed"); return; } - ANS_LOGI("RemoveAllDistributedNotificaions ID:%{public}s", + ANS_LOGI("RemoveAllDistributedNotifications ID:%{public}s", StringAnonymous(deviceInfo.deviceId_).c_str()); DistributedClient::GetInstance().SendMessage(removeBox, TransDataType::DATA_TYPE_MESSAGE, deviceInfo.deviceId_, DELETE_ERROR_EVENT_CODE); diff --git a/services/distributed/src/soft_bus/distributed_service.cpp b/services/distributed/src/soft_bus/distributed_service.cpp index 1a7fb7e1bb6998b3f05fb3455f275f65964ccd16..2d5e02efd489da644e07c15bfd00efb2d332ae4e 100644 --- a/services/distributed/src/soft_bus/distributed_service.cpp +++ b/services/distributed/src/soft_bus/distributed_service.cpp @@ -195,7 +195,7 @@ void DistributedService::DeviceStatusChange(const DeviceStatueChangeInfo& change ANS_LOGW("get deviceId err"); return; } - DistributedPublishService::GetInstance().RemoveAllDistributedNotificaions(device); + DistributedPublishService::GetInstance().RemoveAllDistributedNotifications(device); } #else if (changeInfo.changeType == DeviceStatueChangeType::NOTIFICATION_ENABLE_CHANGE) {