refactor(rpc): fefactor retry way

This commit is contained in:
yihaoDeng 2022-04-28 13:37:40 +08:00
parent b6d21ea687
commit b83963ab1d
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ int cliAppCb(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) {
}
} else if (pCtx->retryCount < TRANS_RETRY_COUNT_LIMIT) {
if (pResp->contLen == 0) {
pEpSet->inUse = (pEpSet->inUse++) % pEpSet->numOfEps;
pEpSet->inUse = (++pEpSet->inUse) % pEpSet->numOfEps;
} else {
SMEpSet emsg = {0};
tDeserializeSMEpSet(pResp->pCont, pResp->contLen, &emsg);