Skip to content

Commit

Permalink
Remove throttleThreshold
Browse files Browse the repository at this point in the history
  • Loading branch information
wetneb committed Jun 25, 2020
1 parent b296105 commit 3adab4a
Showing 1 changed file with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ public class WbEditingAction {
*/
double maxLagBackOffFactor = 1.5;

/**
* Lag threshold above which editing should slow down,
* until stopping when the lag reaches maxLag.
*/
double throttleThreshold = 2.5;

/**
* Number of recent editing times to monitor in order to avoid editing too
* fast. Wikidata.org seems to block fast editors after 9 edits, so this
Expand Down Expand Up @@ -224,42 +218,6 @@ public int getAverageTimePerEdit() {
public void setAverageTimePerEdit(int milliseconds) {
this.averageMsecsPerEdit = milliseconds;
}

/**
* The throttle threshold slows editing down when
* the target site's lag goes above the threshold.
* It does so by decreasing the edit frequency linearly:
* when the lag is equal to the threshold, the nominal
* edit speed is used, and when it reaches the maxlag,
* editing stops.
*
* When the throttle threshold is greater than
* the maxlag, dynamic throttling is disabled.
*
* @return
* the throttle threshold, in seconds
*/
public double getThrottleThreshold() {
return this.throttleThreshold;
}

/**
* The throttle threshold slows editing down when
* the target site's lag goes above the threshold.
* It does so by decreasing the edit frequency linearly:
* when the lag is equal to the threshold, the nominal
* edit speed is used, and when it reaches the maxlag,
* editing stops.
*
* Setting the throttle threshold to a higher value than
* the maxlag disables this mechanism.
*
* @return
* the throttle threshold, in seconds
*/
public void setThrottleThreshold(double throttleThreshold) {
this.throttleThreshold = throttleThreshold;
}

/**
* Executes the API action "wbeditentity" for the given parameters. Created
Expand Down

0 comments on commit 3adab4a

Please sign in to comment.