Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed May 19, 2023
1 parent d7b587f commit 43cc6bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/inputs/kafka_consumer/kafka_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ type KafkaConsumer struct {
ticker *time.Ticker
fingerprint string

parser parsers.Parser
topicLock sync.Mutex
wg sync.WaitGroup
cancel context.CancelFunc
parser parsers.Parser
topicLock sync.Mutex
wg sync.WaitGroup
cancel context.CancelFunc
}

type ConsumerGroup interface {
Expand Down Expand Up @@ -202,7 +202,7 @@ func (k *KafkaConsumer) refreshTopics() error {

k.topicLock.Lock()
defer k.topicLock.Unlock()

if len(k.regexps) == 0 {
return nil
}
Expand Down

0 comments on commit 43cc6bd

Please sign in to comment.