From d088a969435a8b78ed80cf28f50b21c17463137b Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Fri, 1 Mar 2024 22:58:27 +0700 Subject: [PATCH] Fix blocking gh release info call. resolves provectus/kafka-ui#4393 --- .../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(); } }