MAXIMUM_RETRIES increased from 1 to 3.

Now that we are spending a lot of time to carefully select a peer to sync with, it makes sense to retry a couple more times before giving up and starting the peer selection process all over again.
This commit is contained in:
CalDescent 2021-04-24 19:45:53 +01:00
parent ba6397b963
commit 1e491dd8fb

View File

@ -56,7 +56,7 @@ public class Synchronizer {
private static final int MAXIMUM_REQUEST_SIZE = 200; // XXX move to Settings?
/** Number of retry attempts if a peer fails to respond with the requested data */
private static final int MAXIMUM_RETRIES = 1; // XXX move to Settings?
private static final int MAXIMUM_RETRIES = 3; // XXX move to Settings?
private static Synchronizer instance;