fixed up display of GroupStatisticsReq and moved priorities to RsTokReqOptions

This commit is contained in:
csoler 2020-04-07 22:42:01 +02:00
parent 7c77e82b1e
commit ebee69df96
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
9 changed files with 119 additions and 78 deletions

View file

@ -56,7 +56,10 @@ void GxsUserNotify::startUpdate()
mNewChildMessageCount = 0;
uint32_t token;
mTokenService->requestServiceStatistic(token);
RsTokReqOptions opts;
opts.mReqType = GXS_REQUEST_TYPE_SERVICE_STATS;
mTokenService->requestServiceStatistic(token,opts);
mTokenQueue->queueRequest(token, 0, RS_TOKREQ_ANSTYPE_ACK, TOKEN_TYPE_STATISTICS);
}

View file

@ -384,7 +384,10 @@ void GxsTransportStatistics::requestGroupMeta()
void GxsTransportStatistics::requestGroupStat(const RsGxsGroupId &groupId)
{
uint32_t token;
rsGxsTrans->getTokenService()->requestGroupStatistic(token, groupId);
RsTokReqOptions opts;
opts.mReqType = GXS_REQUEST_TYPE_GROUP_STATS;
rsGxsTrans->getTokenService()->requestGroupStatistic(token, groupId,opts);
mTransQueue->queueRequest(token, 0, RS_TOKREQ_ANSTYPE_ACK, GXSTRANS_GROUP_STAT);
}
void GxsTransportStatistics::requestMsgMeta(const RsGxsGroupId& grpId)