Skip to content

Commit fade942

Browse files
committed
remove all args constructor and extranneous import
1 parent 4593560 commit fade942

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

airbyte-workers/src/main/java/io/airbyte/workers/temporal/scheduling/RouterService.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import jakarta.inject.Singleton;
1111
import java.io.IOException;
1212
import java.util.UUID;
13-
import lombok.AllArgsConstructor;
1413
import lombok.extern.slf4j.Slf4j;
1514

1615
/**
@@ -19,12 +18,16 @@
1918
*/
2019
@Singleton
2120
@Slf4j
22-
@AllArgsConstructor
2321
public class RouterService {
2422

2523
private final ConfigRepository configRepository;
2624
private final GeographyMapper geographyMapper;
2725

26+
public RouterService(final ConfigRepository configRepository, final GeographyMapper geographyMapper) {
27+
this.configRepository = configRepository;
28+
this.geographyMapper = geographyMapper;
29+
}
30+
2831
/**
2932
* Given a connectionId, look up the connection's configured {@link Geography} in the config DB and
3033
* use it to determine which Task Queue should be used for this connection's sync.

airbyte-workers/src/test/java/io/airbyte/workers/temporal/scheduling/DefaultGeographyMapperTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import io.airbyte.commons.temporal.scheduling.GeographyMapper;
1010
import io.airbyte.config.Geography;
11-
import io.airbyte.workers.temporal.scheduling.DefaultGeographyMapper;
1211
import java.util.Arrays;
1312
import java.util.Set;
1413
import java.util.stream.Collectors;

0 commit comments

Comments
 (0)