Skip to content

Commit 0694303

Browse files
authored
BE: Fix blocking gh release info call (#185)
1 parent b3691ce commit 0694303

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/src/main/java/io/kafbat/ui/service/ApplicationInfoService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.springframework.boot.info.GitProperties;
1818
import org.springframework.scheduling.annotation.Scheduled;
1919
import org.springframework.stereotype.Service;
20+
import reactor.core.publisher.Mono;
2021

2122
@Service
2223
public class ApplicationInfoService {
@@ -70,7 +71,7 @@ private List<EnabledFeaturesEnum> getEnabledFeatures() {
7071
// updating on startup and every hour
7172
@Scheduled(fixedRateString = "${github-release-info-update-rate:3600000}")
7273
public void updateGithubReleaseInfo() {
73-
githubReleaseInfo.refresh().block();
74+
githubReleaseInfo.refresh().subscribe();
7475
}
7576

7677
}

0 commit comments

Comments
 (0)