Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Sammers21/wow-pla
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Jan 30, 2024
2 parents dcf3940 + cea927f commit c44510d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/io/github/sammers/pla/logic/CharUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public Completable updateCharacters(String region,
merged.stream()
.map(pair -> updateChar(region, Character.fullNameByRealmAndName(pair.getValue0(), pair.getValue1())))
.toList())
.flatMapCompletable(c -> c, true, 2)
.flatMapCompletable(c -> c, true, 1)
.takeUntil(Completable.timer(timeout, timeoutUnits));
}).onErrorComplete().subscribeOn(Main.VTHREAD_SCHEDULER);
}
Expand Down
6 changes: 3 additions & 3 deletions src/io/github/sammers/pla/logic/Ladder.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public Ladder(WebClient web, DB db, BlizzardAPI blizzardAPI, CharacterCache char

public void start() {
boolean updatesEnabled = true;
int euPeriod = 1;
int usPeriod = 30;
int euPeriod = 5;
int usPeriod = 10;
Observable<Long> updates;
if (updatesEnabled) {
updates = Observable.mergeArray(runDataUpdater(EU, 1, MINUTES, new AtomicBoolean(false), Observable.defer(() -> {
Expand Down Expand Up @@ -115,7 +115,7 @@ private Observable<Long> runDataUpdater(String region,
.andThen(calculateMulticlasserLeaderboard(region))
.andThen(loadCutoffs(region))
.andThen(calculateMeta(region))
.andThen(charUpdater.updateCharacters(region, 7, DAYS, timeout, timeoutUnits))
.andThen(charUpdater.updateCharacters(region, 1, DAYS, timeout, timeoutUnits))
.onErrorComplete(e -> {
log.error("Error updating data for region " + region, e);
return true;
Expand Down

0 comments on commit c44510d

Please sign in to comment.