-
Notifications
You must be signed in to change notification settings - Fork 130
Conversation
The RequestTimeout field in the IbftConfig has been updated to be "RequestTimeoutSeconds".
public int getRequestTimeoutMillis() { | ||
return ibftConfigRoot.getInteger("requesttimeout", DEFAULT_ROUND_EXPIRY_MILLISECONDS); | ||
public int getRequestTimeoutSeconds() { | ||
return ibftConfigRoot.getInteger("requesttimeoutseconds", DEFAULT_ROUND_EXPIRY_MILLISECONDS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still got DEFAULT_ROUND_EXPIRY_MILLISECONDS while we're now talking about seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. Done.
@@ -187,7 +187,7 @@ | |||
|
|||
final IbftStateMachine ibftStateMachine = new IbftStateMachine(blockCreatorFactory); | |||
final IbftProcessor ibftProcessor = | |||
new IbftProcessor(ibftEventQueue, ibftConfig.getRequestTimeoutMillis(), ibftStateMachine); | |||
new IbftProcessor(ibftEventQueue, ibftConfig.getRequestTimeoutSeconds(), ibftStateMachine); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Far side of this call is still referring to it's parameter as millis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -36,7 +36,7 @@ public int getBlockPeriodSeconds() { | |||
return ibftConfigRoot.getInteger("blockperiodseconds", DEFAULT_BLOCK_PERIOD_SECONDS); | |||
} | |||
|
|||
public int getRequestTimeoutMillis() { | |||
return ibftConfigRoot.getInteger("requesttimeout", DEFAULT_ROUND_EXPIRY_MILLISECONDS); | |||
public int getRequestTimeoutSeconds() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the name requestTimeout doesn't really indicate what it is for. Some mention of the round in name would be good. Perhaps something like initialRoundTimeoutSeconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but can we worry about this one next, don't want to stray TOO far right now.
The RequestTimeout field in the IbftConfig has been updated to be
"RequestTimeoutSeconds".