Skip to content

Commit

Permalink
fix config type switching (airbytehq#125)
Browse files Browse the repository at this point in the history
* fix config type switching

* fix formatting
  • Loading branch information
jrhizor authored Aug 28, 2020
1 parent 8396668 commit 5d696f0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void run() {
job.getConfig().getDiscoverSchema().getDockerImage()),
connectionPool)
.run();
break;
case SYNC:
final StandardSyncInput syncInput = getSyncInput(job.getConfig().getSync());
new WorkerRun<>(
Expand All @@ -100,6 +101,9 @@ public void run() {
new SingerTargetFactory(job.getConfig().getSync().getDestinationDockerImage())),
connectionPool)
.run();
break;
default:
throw new RuntimeException("Unexpected config type: " + job.getConfig().getConfigType());
}
}

Expand Down

0 comments on commit 5d696f0

Please sign in to comment.