refact code

This commit is contained in:
yihaoDeng 2024-08-01 13:46:34 +08:00 committed by wangjiaming0909
parent f2a3951c23
commit f90438a56a
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ int32_t rpcSendRequest(void* shandle, const SEpSet* pEpSet, SRpcMsg* pMsg, int64
return transSendRequest(shandle, pEpSet, pMsg, NULL);
}
int32_t rpcSendRequestWithCtx(void* shandle, const SEpSet* pEpSet, SRpcMsg* pMsg, int64_t* pRid, SRpcCtx* pCtx) {
if (pCtx != NULL) {
if (pCtx != NULL || pMsg->info.handle != 0) {
return transSendRequest(shandle, pEpSet, pMsg, pCtx);
} else {
return transSendRequestWithId(shandle, pEpSet, pMsg, pRid);