Skip to content

Commit

Permalink
Revert "feat(config): Use a proxy dialer"
Browse files Browse the repository at this point in the history
This reverts commit 7bc0150.
  • Loading branch information
Mongey authored Sep 14, 2023
1 parent 7bc0150 commit 5629626
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kafka/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"time"

"github.com/IBM/sarama"
"golang.org/x/net/proxy"
)

type Config struct {
Expand All @@ -35,9 +34,6 @@ func (c *Config) newKafkaConfig() (*sarama.Config, error) {
kafkaConfig.Metadata.Full = true // the default, but just being clear
kafkaConfig.Metadata.AllowAutoTopicCreation = false

kafkaConfig.Net.Proxy.Enable = true
kafkaConfig.Net.Proxy.Dialer = proxy.FromEnvironment()

if c.saslEnabled() {
switch c.SASLMechanism {
case "scram-sha512":
Expand Down

0 comments on commit 5629626

Please sign in to comment.