Skip to content

Commit

Permalink
feat: default value refresh rate
Browse files Browse the repository at this point in the history
  • Loading branch information
gmann7 committed Nov 25, 2024
1 parent f4d31ef commit 8c93656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public class ConfigSRV implements IConfigSRV {

@Autowired
private ProfileUtility profiles;

@Value("${ms.config.refresh-rate}")
@Value("${ms.config.refresh-rate:900000}")
private Long refreshRate;

private final Map<String, Pair<Long, String>> props;
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ ini.client.ds-cert.alias=${DS_CERT_ALIAS}
ms.url.gtw-config=${GTW_CONFIG_HOST}
ms.url.gtw-crash-program-validator=${GTW_CRASH_PROGRAM_HOST}

#######################################
# GTW-CONFIG
#######################################
# default value 15 minutes
ms.config.refresh-rate=300000

0 comments on commit 8c93656

Please sign in to comment.