Skip to content

Commit

Permalink
fix(boot2): camel -> snake case (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchello2000 committed Sep 13, 2019
1 parent fba4fea commit 7e297c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ public List<Application> getApplications() {
return applicationCache.get();
}

@Scheduled(fixedDelayString = "${fiat.clouddriverRefreshMs:30000}")
@Scheduled(fixedDelayString = "${fiat.clouddriver-refresh-ms:30000}")
public void refreshAccounts() {
accountCache.set(clouddriverApi.getAccounts());
healthTracker.success();
}

@Scheduled(fixedDelayString = "${fiat.clouddriverRefreshMs:30000}")
@Scheduled(fixedDelayString = "${fiat.clouddriver-refresh-ms:30000}")
public void refreshApplications() {
applicationCache.set(clouddriverApi.getApplications());
healthTracker.success();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static void logFallback(String resource, Throwable cause) {
log.info("Falling back to {} cache. {}", resource, message);
}

@Scheduled(fixedDelayString = "${fiat.front50RefreshMs:30000}")
@Scheduled(fixedDelayString = "${fiat.front50-refresh-ms:30000}")
private void refreshCache() {
try {
// Initialize caches (also indicates service is healthy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public List<BuildService> getAllBuildServices() {
return buildServicesCache.get();
}

@Scheduled(fixedDelayString = "${fiat.igorRefreshMs:30000}")
@Scheduled(fixedDelayString = "${fiat.igor-refresh-ms:30000}")
public void refreshBuildServices() {
if (igorEnabled) {
buildServicesCache.set(igorApi.getBuildMasters());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ClouddriverService clouddriverService(ClouddriverApi clouddriverApi) {

@Bean
@ConditionalOnProperty("services.igor.enabled")
IgorApi igorApi(@Value("${services.igor.baseUrl}") String igorEndpoint) {
IgorApi igorApi(@Value("${services.igor.base-url}") String igorEndpoint) {
return new RestAdapter.Builder()
.setEndpoint(Endpoints.newFixedEndpoint(igorEndpoint))
.setClient(okClient)
Expand Down

0 comments on commit 7e297c5

Please sign in to comment.