improved variable name and comment for GxsRequest::ansType

This commit is contained in:
csoler 2020-04-13 13:35:35 +02:00
parent 54f8ef1ffe
commit bc748bf152
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 4 additions and 4 deletions

View File

@ -301,7 +301,7 @@ bool RsGxsDataAccess::requestMsgRelatedInfo(uint32_t &token, uint32_t ansType, c
void RsGxsDataAccess::setReq(GxsRequest* req, uint32_t token, uint32_t ansType, const RsTokReqOptions& opts) const
{
req->token = token;
req->ansType = ansType;
req->clientAnswerType = ansType;
req->Options = opts;
return;
}
@ -1724,7 +1724,7 @@ bool RsGxsDataAccess::checkRequestStatus( uint32_t token, GxsRequestStatus& stat
if(req != nullptr)
{
anstype = req->ansType;
anstype = req->clientAnswerType;
reqtype = req->reqType;
status = COMPLETE;
ts = req->reqTime;

View File

@ -29,14 +29,14 @@
struct GxsRequest
{
GxsRequest() :
token(0), reqTime(0), ansType(0), reqType(0),
token(0), reqTime(0), clientAnswerType(0), reqType(0),
status(RsTokenService::FAILED) {}
virtual ~GxsRequest() {}
uint32_t token;
uint32_t reqTime;
RS_DEPRECATED uint32_t ansType; /// G10h4ck: This is of no use. csoler: it's made available to the clients.
uint32_t clientAnswerType; /// This is made available to the clients in order to keep track of why specific requests where sent..
uint32_t reqType;
RsTokReqOptions Options;