Skip to content

Commit

Permalink
fix: fix checkstyle (#37)
Browse files Browse the repository at this point in the history
* fix: fix checkstyle

* fix: fix checkstyle

* fix: fix checkstyle

* fix: fix checkstyle
  • Loading branch information
sumitaich1998 authored Apr 24, 2024
1 parent e021eeb commit a3fae5a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ public class HttpV2SinkUtils {

public static void addAdditionalConfigsForHttpV2Sink(Map<String, String> env) {

switch (KafkaConsumerMode.valueOf(env.getOrDefault("SOURCE_KAFKA_CONSUMER_MODE", "SYNC"))) {
System.out.println(env.getOrDefault("SOURCE_KAFKA_CONSUMER_MODE", "SYNC").toUpperCase());
switch (KafkaConsumerMode.valueOf(env.getOrDefault("SOURCE_KAFKA_CONSUMER_MODE", "SYNC").toUpperCase())) {
case SYNC:
env.put("SINK_HTTPV2_MAX_CONNECTIONS", "1");
break;

case ASYNC:
env.put("SINK_HTTPV2_MAX_CONNECTIONS", env.getOrDefault("SINK_POOL_NUM_THREADS", "1"));
break;
default:
throw new IllegalArgumentException("Consumer mode should be async or sync");

}
}
}

0 comments on commit a3fae5a

Please sign in to comment.