Skip to content

Commit

Permalink
Add back public API in RecoverySettings to 2.x
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Handalian <[email protected]>
  • Loading branch information
mch2 committed Apr 15, 2024
1 parent b12306c commit 031698d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,16 @@ public RecoverySettings(Settings settings, ClusterSettings clusterSettings) {

}

/**
* Method unused as of 2.14 but left as part of public API.
* Use recoveryRateLimiter or replicationRateLimiter instead.
* @return {@link RateLimiter} Recovery rate limiter
*/
@Deprecated(forRemoval = true, since = "2.14")
public RateLimiter rateLimiter() {
return recoveryRateLimiter;
}

public RateLimiter recoveryRateLimiter() {
return recoveryRateLimiter;
}
Expand Down

0 comments on commit 031698d

Please sign in to comment.