From 0694303e3069d40078c91bc6a77baf2e43adaace Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Thu, 7 Mar 2024 20:02:16 +0700 Subject: [PATCH] BE: Fix blocking gh release info call (#185) --- .../main/java/io/kafbat/ui/service/ApplicationInfoService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/io/kafbat/ui/service/ApplicationInfoService.java b/api/src/main/java/io/kafbat/ui/service/ApplicationInfoService.java index 9c396e149..0a04ce9d6 100644 --- a/api/src/main/java/io/kafbat/ui/service/ApplicationInfoService.java +++ b/api/src/main/java/io/kafbat/ui/service/ApplicationInfoService.java @@ -17,6 +17,7 @@ import org.springframework.boot.info.GitProperties; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; +import reactor.core.publisher.Mono; @Service public class ApplicationInfoService { @@ -70,7 +71,7 @@ private List getEnabledFeatures() { // updating on startup and every hour @Scheduled(fixedRateString = "${github-release-info-update-rate:3600000}") public void updateGithubReleaseInfo() { - githubReleaseInfo.refresh().block(); + githubReleaseInfo.refresh().subscribe(); } }