It does not need to update es when init, cause nothing changes yet. And update es here would make git-mirror start slowly.
Signed-off-by: Li Yuanchao lyc163mail@163.com --- lib/git_mirror.rb | 1 - 1 file changed, 1 deletion(-)
diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index a111e51..2090f6b 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -214,7 +214,6 @@ class MirrorMain @git_info[git_repo]['git_repo'] = git_repo @git_info[git_repo].merge!(@defaults[project]) if @defaults[project] fork_stat_init(git_repo) - es_repo_update(git_repo) @priority_queue.push git_repo, @priority @priority += 1 end