File tree 3 files changed +3
-3
lines changed
main/java/io/goodforgod/api/etherscan
test/java/io/goodforgod/api/etherscan
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public EtherScanAPI.Builder withConverter(@NotNull Supplier<Converter> converter
89
89
}
90
90
91
91
@ NotNull
92
- public EtherScanAPI .Builder withRetryOnLimitReach (int maxRetryCount ) {
92
+ public EtherScanAPI .Builder withRetryOnRateLimit (int maxRetryCount ) {
93
93
if (maxRetryCount < 0 || maxRetryCount > 20 ) {
94
94
throw new IllegalStateException ("maxRetryCount value must be in range from 0 to 20, but was: " + maxRetryCount );
95
95
}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ interface Builder {
71
71
* @return self
72
72
*/
73
73
@ NotNull
74
- EtherScanAPI .Builder withRetryOnLimitReach (@ Range (from = 0 , to = 20 ) int maxRetryCount );
74
+ EtherScanAPI .Builder withRetryOnRateLimit (@ Range (from = 0 , to = 20 ) int maxRetryCount );
75
75
76
76
@ NotNull
77
77
EtherScanAPI build ();
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class ApiRunner extends Assertions {
29
29
.withApiKey (ApiRunner .API_KEY )
30
30
.withNetwork (EthNetworks .MAINNET )
31
31
.withQueue (queueManager )
32
- .withRetryOnLimitReach (5 )
32
+ .withRetryOnRateLimit (5 )
33
33
.build ();
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments