Skip to content

Commit 0a46928

Browse files
authored
Merge pull request #122 from avaje/feature/awsAppConfig-params
AwsAppConfig plugin: Parameter name changes to pollingEnabled, pollingSeconds refreshSeconds
2 parents 4c385f8 + 2a93e01 commit 0a46928

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

avaje-aws-appconfig/src/main/java/io/avaje/config/appconfig/AppConfigPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ static final class Loader {
7272
.configuration(con)
7373
.build();
7474

75-
boolean pollEnabled = configuration.enabled("aws.appconfig.poll.enabled", true);
76-
long pollSeconds = configuration.getLong("aws.appconfig.poll.seconds", 45L);
77-
this.nextRefreshSeconds = configuration.getLong("aws.appconfig.refresh.seconds", pollSeconds - 1);
75+
boolean pollEnabled = configuration.enabled("aws.appconfig.pollingEnabled", true);
76+
long pollSeconds = configuration.getLong("aws.appconfig.pollingSeconds", 45L);
77+
this.nextRefreshSeconds = configuration.getLong("aws.appconfig.refreshSeconds", pollSeconds - 1);
7878
if (pollEnabled) {
7979
configuration.schedule(pollSeconds * 1000L, pollSeconds * 1000L, this::reload);
8080
}

0 commit comments

Comments
 (0)