Skip to content

Commit

Permalink
Improve tests for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier committed Nov 21, 2023
1 parent 2baa8dc commit 2315713
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 272 deletions.
4 changes: 0 additions & 4 deletions src/main/java/io/getunleash/repository/FeatureRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ private void initCollections(UnleashScheduledExecutor executor) {
}
}

private Integer calculateMaxSkips(int fetchTogglesInterval) {
return Integer.max(20, 300 / Integer.max(fetchTogglesInterval, 1));
}

private Runnable updateFeatures(final Consumer<UnleashException> handler) {
return () -> {
if (throttler.performAction()) {
Expand Down
Loading

0 comments on commit 2315713

Please sign in to comment.