Make @IndexExecutor a non-scheduled executor

The scheduling functionality is not required and prevents us from
substituting in a sameThreadExecutor for tests.

Change-Id: I9fb7c93320199e92a193131057f376b03af03d26
This commit is contained in:
Dave Borowitz
2013-10-08 16:03:31 -07:00
parent 398cf16244
commit bb5a30f8a5
6 changed files with 18 additions and 19 deletions

View File

@@ -25,7 +25,6 @@ import com.google.common.collect.Sets;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.ListeningScheduledExecutorService;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.PatchSetApproval;
@@ -156,7 +155,7 @@ public class LuceneChangeIndex implements ChangeIndex {
LuceneChangeIndex(
@GerritServerConfig Config cfg,
SitePaths sitePaths,
@IndexExecutor ListeningScheduledExecutorService executor,
@IndexExecutor ListeningExecutorService executor,
FillArgs fillArgs,
@Assisted Schema<ChangeData> schema,
@Assisted @Nullable String base) throws IOException {