Skip to content

Commit

Permalink
BE: Fix blocking gh release info call (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean authored Mar 7, 2024
1 parent b3691ce commit 0694303
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 0694303

Please sign in to comment.