mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-11 12:24:13 +00:00
Fix for bigger retry interval
This commit is contained in:
parent
ffef5a8bb9
commit
178f3ae7b0
@ -74,6 +74,7 @@ public class MessageQueue {
|
||||
|
||||
if (msg.getClass() == waitingMessage.getAnswerMessage()){
|
||||
messageRoundtrip.answer();
|
||||
logger.debug("Message round trip covered: [ {} ] ", messageRoundtrip.getMsg().getMessageName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public class MessageRoundtrip {
|
||||
public void saveTime(){lastTimestamp = System.currentTimeMillis();}
|
||||
|
||||
public boolean hasToRetry(){
|
||||
return 5000 < System.currentTimeMillis() - lastTimestamp;
|
||||
return 20000 < System.currentTimeMillis() - lastTimestamp;
|
||||
}
|
||||
|
||||
public Message getMsg() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user