mirror of
https://github.com/openharmony/distributedschedule_samgr_lite.git
synced 2026-07-19 17:13:31 -04:00
chore: service已经提前判断,无须重复判断
Signed-off-by: SimonLi <likailong@huawei.com>
This commit is contained in:
@@ -50,7 +50,7 @@ int SAMGR_RegisterServiceApi(const char *service, const char *feature, const Ide
|
||||
SaName saName = {service, feature};
|
||||
int32 token = SAMGR_AddRouter(g_remoteRegister.endpoint, &saName, identity, iUnknown);
|
||||
char saNameStr[2 * MAX_NAME_LEN + 2];
|
||||
sprintf_s(saNameStr, 2 * MAX_NAME_LEN + 2, "%s#%s", service?service:"", feature?feature:"");
|
||||
sprintf_s(saNameStr, 2 * MAX_NAME_LEN + 2, "%s#%s", service, feature?feature:"");
|
||||
HILOG_INFO(HILOG_MODULE_SAMGR, "register saname: %s index: %d\n", saNameStr, token);
|
||||
SaNode *saNode = GetSaNodeBySaName(service, feature);
|
||||
if (saNode != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user