Skip to content

Commit

Permalink
Fix blocking gh release info call. resolves provectus/kafka-ui#4393
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Mar 1, 2024
1 parent 3608b26 commit d088a96
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -70,7 +71,7 @@ private List<EnabledFeaturesEnum> getEnabledFeatures() {
// updating on startup and every hour
@Scheduled(fixedRateString = "${github-release-info-update-rate:3600000}")
public void updateGithubReleaseInfo() {
githubReleaseInfo.refresh().block();
githubReleaseInfo.refresh().subscribe();
}

}

0 comments on commit d088a96

Please # to comment.