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

View file

@ -29,14 +29,14 @@
struct GxsRequest struct GxsRequest
{ {
GxsRequest() : GxsRequest() :
token(0), reqTime(0), ansType(0), reqType(0), token(0), reqTime(0), clientAnswerType(0), reqType(0),
status(RsTokenService::FAILED) {} status(RsTokenService::FAILED) {}
virtual ~GxsRequest() {} virtual ~GxsRequest() {}
uint32_t token; uint32_t token;
uint32_t reqTime; 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; uint32_t reqType;
RsTokReqOptions Options; RsTokReqOptions Options;