From 9daa446d0b61254c8d7647f421a19a15ae865733 Mon Sep 17 00:00:00 2001 From: Marcus Fihlon Date: Sun, 7 Apr 2024 18:09:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20First=20download=20of=20ag?= =?UTF-8?q?enda=20and=20mastodon=20posts=20one=20second=20after=20UI=20was?= =?UTF-8?q?=20created.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Fihlon --- src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java | 2 +- src/main/java/swiss/fihlon/apus/ui/view/SocialView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java b/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java index aab0f3b..ca9f960 100644 --- a/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java +++ b/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java @@ -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)); } diff --git a/src/main/java/swiss/fihlon/apus/ui/view/SocialView.java b/src/main/java/swiss/fihlon/apus/ui/view/SocialView.java index f9679c5..46fb8e2 100644 --- a/src/main/java/swiss/fihlon/apus/ui/view/SocialView.java +++ b/src/main/java/swiss/fihlon/apus/ui/view/SocialView.java @@ -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)); }