mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Increase num repeated request limit from 10 to 20.
Make logmore visible.
This commit is contained in:
parent
b8d1c92cd4
commit
8aa9d7cf42
@ -360,15 +360,19 @@ public class RequestDataManager implements MessageListener, ConnectionListener,
|
||||
}
|
||||
|
||||
if (wasTruncated) {
|
||||
if (numRepeatedRequests < 10) {
|
||||
if (numRepeatedRequests < 20) {
|
||||
log.info("DataResponse did not contain all data, so we repeat request until we got all data");
|
||||
UserThread.runAfter(() -> requestData(nodeAddress, remainingNodeAddresses), 2);
|
||||
} else {
|
||||
log.info("DataResponse still did not contained all data but we requested already 10 times and stop now.");
|
||||
log.warn("#################################################################\n" +
|
||||
"Loading initial data did not complete after 20 repeated requests. \n" +
|
||||
"#################################################################");
|
||||
checkNotNull(listener).onDataReceived();
|
||||
}
|
||||
} else {
|
||||
log.info("DataResponse contained all data");
|
||||
log.info("#################################################################\n" +
|
||||
"Loading initial data completed\n" +
|
||||
"#################################################################");
|
||||
checkNotNull(listener).onDataReceived();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user