llmq: Sleep less in quorum data recovery threads (#3989)

Speeds up feature_llmq_data_recovery.py test ~25% and makes sense overall imo.
This commit is contained in:
UdjinM6 2021-02-15 01:11:20 +03:00 committed by GitHub
parent f5e74c8a10
commit 054be30344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,7 +319,7 @@ void CQuorum::StartQuorumDataRecoveryThread(const CQuorumCPtr _this, const CBloc
} }
}); });
_this->interruptQuorumDataReceived.reset(); _this->interruptQuorumDataReceived.reset();
_this->interruptQuorumDataReceived.sleep_for(std::chrono::seconds(nRequestTimeout)); _this->interruptQuorumDataReceived.sleep_for(std::chrono::seconds(1));
} }
_this->fQuorumDataRecoveryThreadRunning = false; _this->fQuorumDataRecoveryThreadRunning = false;
printLog("Done"); printLog("Done");