mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-30 19:34:31 -04:00
added auto-consistency between store/sync periods
This commit is contained in:
parent
dd2a3c26de
commit
5953e563f4
3 changed files with 37 additions and 3 deletions
|
@ -629,7 +629,13 @@ void RsGxsNetService::syncWithPeers()
|
|||
msg->PeerId(peerId);
|
||||
msg->updateTS = updateTS;
|
||||
|
||||
int req_delay = (int)mServerGrpConfigMap[grpId].msg_req_delay ;
|
||||
int req_delay = (int)mServerGrpConfigMap[grpId].msg_req_delay ;
|
||||
int keep_delay = (int)mServerGrpConfigMap[grpId].msg_keep_delay ;
|
||||
|
||||
// If we store for less than we request, we request less, otherwise the posts will be deleted after being obtained.
|
||||
|
||||
if(keep_delay > 0 && req_delay > 0 && keep_delay < req_delay)
|
||||
req_delay = keep_delay ;
|
||||
|
||||
// The last post will be set to TS 0 if the req delay is 0, which means "Indefinitly"
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
static const uint32_t MAX_GXS_IDS_REQUESTS_NET = 10 ; // max number of requests from cache/net (avoids killing the system!)
|
||||
|
||||
#define DEBUG_GXSUTIL 1
|
||||
//#define DEBUG_GXSUTIL 1
|
||||
|
||||
#define GXSUTIL_DEBUG() std::cerr << time(NULL) << " : GXS_UTIL : " << __FUNCTION__ << " : "
|
||||
|
||||
|
@ -50,7 +50,6 @@ RsGxsMessageCleanUp::RsGxsMessageCleanUp(RsGeneralDataService* const dataService
|
|||
mGrpMeta.push_back(cit->second);
|
||||
}
|
||||
|
||||
|
||||
bool RsGxsMessageCleanUp::clean()
|
||||
{
|
||||
uint32_t i = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue