1
0
mirror of synced 2025-12-19 18:14:56 -05:00

fix config type switching (#125)

* fix config type switching

* fix formatting
This commit is contained in:
Jared Rhizor
2020-08-28 14:03:06 -07:00
committed by GitHub
parent 839666862e
commit 5d696f01db

View File

@@ -86,6 +86,7 @@ public class WorkerRunner implements Runnable {
job.getConfig().getDiscoverSchema().getDockerImage()),
connectionPool)
.run();
break;
case SYNC:
final StandardSyncInput syncInput = getSyncInput(job.getConfig().getSync());
new WorkerRun<>(
@@ -100,6 +101,9 @@ public class WorkerRunner implements Runnable {
new SingerTargetFactory(job.getConfig().getSync().getDestinationDockerImage())),
connectionPool)
.run();
break;
default:
throw new RuntimeException("Unexpected config type: " + job.getConfig().getConfigType());
}
}