Don't set lastCheckTime in ProjectState
The lastCheckTime/generation fields are actually a counter that is incremented using a background thread. The values don't match the system clock, and thus reading System.currentTimeMillis() during the construction of ProjectState is a waste of resources. Change-Id: I6c4d0f29f096197aa64795500d69702ce0965840
This commit is contained in:
@@ -80,7 +80,6 @@ public class ProjectState {
|
||||
this.envFactory = envFactory;
|
||||
this.gitMgr = gitMgr;
|
||||
this.config = config;
|
||||
this.lastCheckTime = System.currentTimeMillis();
|
||||
if (rulesCache != null) {
|
||||
ruleLoader = rulesCache.getClassLoader(config.getRulesId());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user