Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie-coming committed Dec 20, 2024
1 parent 5e37f55 commit 8512776
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ public ApolloConfig queryConfig(@PathVariable String appId, @PathVariable String
Map<String, String> historyConfigurations = mergeReleaseConfigurations
(historyReleasesWithOrder);

List<ConfigurationChange> configurationChanges = configService.calcConfigurationChanges
(latestConfigurations, historyConfigurations);
List<ConfigurationChange> configurationChanges = configService.calcConfigurationChanges(
latestConfigurations, historyConfigurations);

apolloConfig.setConfigurationChanges(configurationChanges);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public List<ConfigurationChange> calcConfigurationChanges(
continue;
}
changes.add(
new ConfigurationChange(commonKey, currentValue,"MODIFIED"));
new ConfigurationChange(commonKey, currentValue, "MODIFIED"));
}

return changes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*/
public class ConfigServiceWithChangeCache extends ConfigServiceWithCache {

private static final Logger logger = LoggerFactory.getLogger(ConfigServiceWithChangeCache.class);
private static final Logger logger = LoggerFactory.getLogger(ConfigServiceWithChangeCache.class);


private static final long DEFAULT_EXPIRED_AFTER_ACCESS_IN_SENCONDS = 10;
Expand All @@ -70,7 +70,7 @@ public ConfigServiceWithChangeCache(final ReleaseService releaseService,
final BizConfig bizConfig,
final MeterRegistry meterRegistry) {

super(releaseService, releaseMessageService, grayReleaseRulesHolder, bizConfig, meterRegistry);
super(releaseService, releaseMessageService, grayReleaseRulesHolder, bizConfig, meterRegistry);

}

Expand All @@ -82,10 +82,10 @@ public void initialize() {

private void buildReleaseCache() {

CacheBuilder releasesCacheBuilder = CacheBuilder.newBuilder()
CacheBuilder releasesCacheBuilder = CacheBuilder.newBuilder()
.expireAfterAccess(DEFAULT_EXPIRED_AFTER_ACCESS_IN_SENCONDS, TimeUnit.SECONDS);

releasesCache = releasesCacheBuilder.build(new CacheLoader<String, Optional<Release>>() {
releasesCache = releasesCacheBuilder.build(new CacheLoader<String, Optional<Release>>() {
@Override
public Optional<Release> load(String key) {
Transaction transaction = Tracer.newTransaction(TRACER_EVENT_CHANGE_CACHE_LOAD_KEY, key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public interface IncrementalSyncConfigService {
* @param historyConfigurations
* @return the ConfigurationChanges
*/
List<ConfigurationChange> calcConfigurationChanges(Map<String, String> latestReleaseConfigurations, Map<String, String> historyConfigurations);
List<ConfigurationChange> calcConfigurationChanges(
Map<String, String> latestReleaseConfigurations, Map<String, String> historyConfigurations);

/**
* @param releaseKeys
Expand Down

0 comments on commit 8512776

Please sign in to comment.