Skip to content

Commit b6e9ba5

Browse files
committed
[2.1.0-SNAPSHOT]
Method renamed
1 parent 519c26a commit b6e9ba5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/io/goodforgod/api/etherscan/EthScanAPIBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public EtherScanAPI.Builder withConverter(@NotNull Supplier<Converter> converter
8989
}
9090

9191
@NotNull
92-
public EtherScanAPI.Builder withRetryOnLimitReach(int maxRetryCount) {
92+
public EtherScanAPI.Builder withRetryOnRateLimit(int maxRetryCount) {
9393
if (maxRetryCount < 0 || maxRetryCount > 20) {
9494
throw new IllegalStateException("maxRetryCount value must be in range from 0 to 20, but was: " + maxRetryCount);
9595
}

src/main/java/io/goodforgod/api/etherscan/EtherScanAPI.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ interface Builder {
7171
* @return self
7272
*/
7373
@NotNull
74-
EtherScanAPI.Builder withRetryOnLimitReach(@Range(from = 0, to = 20) int maxRetryCount);
74+
EtherScanAPI.Builder withRetryOnRateLimit(@Range(from = 0, to = 20) int maxRetryCount);
7575

7676
@NotNull
7777
EtherScanAPI build();

src/test/java/io/goodforgod/api/etherscan/ApiRunner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class ApiRunner extends Assertions {
2929
.withApiKey(ApiRunner.API_KEY)
3030
.withNetwork(EthNetworks.MAINNET)
3131
.withQueue(queueManager)
32-
.withRetryOnLimitReach(5)
32+
.withRetryOnRateLimit(5)
3333
.build();
3434
}
3535

0 commit comments

Comments
 (0)