Skip to content

Commit

Permalink
ef-labs#64 fix parameter update
Browse files Browse the repository at this point in the history
  • Loading branch information
eXpire163 committed May 2, 2019
1 parent 0b07006 commit f5cdd0d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ private List<MirrorSettings> getMirrorSettings(Settings settings, boolean defTag
}

private void schedulePushes(Repository repository, List<MirrorSettings> list) {
/*for(MirrorSettings settings : list){
logger.warn(settings.mirrorRepoUrl);
try {
pushExecutor.schedule(new MirrorRequest(repository, settings), 5L, TimeUnit.SECONDS);
}catch (Exception e){
logger.error("Error in scheduling", e);
e.printStackTrace();
}
}*/
list.forEach(settings -> pushExecutor.schedule(new MirrorRequest(repository, settings), 5L, TimeUnit.SECONDS));
}

Expand Down Expand Up @@ -241,6 +252,7 @@ private void updateSettings(List<MirrorSettings> mirrorSettings, Settings settin
values.put(SETTING_TAGS + ms.suffix, ms.tags);
values.put(SETTING_NOTES + ms.suffix, ms.notes);
values.put(SETTING_ATOMIC + ms.suffix, ms.atomic);
values.put(SETTING_VERIFY_SSL + ms.suffix, ms.verifySsl);
}

// Unfortunately the settings are stored in an immutable map, so need to cheat with reflection
Expand Down

0 comments on commit f5cdd0d

Please sign in to comment.