diff options
Diffstat (limited to 'src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java')
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java b/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java index 7115d5b..2dbc7b7 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java @@ -52,6 +52,7 @@ final class StartCommand extends SshCommand { @Inject private PushAll.Factory pushFactory; private final Object lock = new Object(); + @Inject private ReplicationState.Factory replicationStateFactory; @Override protected void run() throws Failure { @@ -59,7 +60,7 @@ final class StartCommand extends SshCommand { throw new UnloggedFailure(1, "error: cannot combine --all and PROJECT"); } - ReplicationState state = new ReplicationState(new CommandProcessing(this)); + ReplicationState state = replicationStateFactory.create(new CommandProcessing(this)); Future<?> future = null; ReplicationFilter projectFilter; |