Skip to content

Commit

Permalink
♻️ First download of agenda and mastodon posts one second after UI wa…
Browse files Browse the repository at this point in the history
…s created.

Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Apr 7, 2024
1 parent 63a52dd commit 9daa446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public ConferenceView(@NotNull final ConferenceService conferenceService,
add(createLegend());
add(roomContainer);
final ScheduledFuture<?> updateScheduler = taskScheduler.scheduleAtFixedRate(
this::updateScheduler, Instant.now().plusSeconds(10), UPDATE_FREQUENCY);
this::updateScheduler, Instant.now().plusSeconds(1), UPDATE_FREQUENCY);
addDetachListener(event -> updateScheduler.cancel(true));
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/swiss/fihlon/apus/ui/view/SocialView.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SocialView(@NotNull final SocialService socialService,
add(messageContainer);
messageContainer.addClassName("masonry");
final ScheduledFuture<?> updateScheduler = taskScheduler.scheduleAtFixedRate(
this::updateScheduler, Instant.now().plusSeconds(10), UPDATE_FREQUENCY);
this::updateScheduler, Instant.now().plusSeconds(1), UPDATE_FREQUENCY);
addDetachListener(event -> updateScheduler.cancel(true));
}

Expand Down

0 comments on commit 9daa446

Please sign in to comment.