Skip to content

Commit

Permalink
Merge pull request #491 from amaximus/bugfix/JENKINS-71645
Browse files Browse the repository at this point in the history
[JENKINS-71645] Fix granting Project list fetch interval parameter
  • Loading branch information
rsandell committed Jul 14, 2023
2 parents 475e265 + 68dfda5 commit 16f635e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void initProjectListUpdater() {
return;
}
timer = new Timer(serverName);
scheduleProjectListUpdate(getConfig().getProjectListFetchDelay());
scheduleProjectListUpdate(getConfig().getProjectListFetchDelay(),getConfig().getProjectListRefreshInterval());
} else {
logger.error("Can't create two timers for the same Gerrit instance: " + serverName);
}
Expand Down Expand Up @@ -208,7 +208,7 @@ public void cancelProjectListUpdater() {
*
* @param initDelay the initial delay, in seconds.
*/
public void scheduleProjectListUpdate(int initDelay) {
public void scheduleProjectListUpdate(int initDelay, int timerUpdatePeriod) {
logger.info("Start timer to update project list");
if (timer != null) {
timer.cancel();
Expand Down

0 comments on commit 16f635e

Please sign in to comment.