Skip to content

Commit 77e87d0

Browse files
chore: fix revive lint
1 parent 4493eb0 commit 77e87d0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

consumer_config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type ConsumerConfig struct {
2222
TLS *TLSConfig
2323
BatchConfiguration *BatchConfiguration
2424
ConsumeFn ConsumeFn
25-
ClientId string
25+
ClientID string
2626
Rack string
2727
LogLevel LogLevel
2828
Reader ReaderConfig
@@ -34,10 +34,10 @@ type ConsumerConfig struct {
3434

3535
func (cfg *ConsumerConfig) newCronsumerConfig() *kcronsumer.Config {
3636
cronsumerCfg := kcronsumer.Config{
37-
ClientID: cfg.RetryConfiguration.ClientId,
37+
ClientID: cfg.RetryConfiguration.ClientID,
3838
Brokers: cfg.RetryConfiguration.Brokers,
3939
Consumer: kcronsumer.ConsumerConfig{
40-
ClientID: cfg.ClientId,
40+
ClientID: cfg.ClientID,
4141
GroupID: cfg.Reader.GroupID,
4242
Topic: cfg.RetryConfiguration.Topic,
4343
Cron: cfg.RetryConfiguration.StartTimeCron,
@@ -89,7 +89,7 @@ type MetricConfiguration struct {
8989
type RetryConfiguration struct {
9090
SASL *SASLConfig
9191
TLS *TLSConfig
92-
ClientId string
92+
ClientID string
9393
StartTimeCron string
9494
Topic string
9595
Rack string
@@ -107,7 +107,7 @@ type BatchConfiguration struct {
107107
func (cfg *ConsumerConfig) newKafkaDialer() (*kafka.Dialer, error) {
108108
dialer := &Dialer{
109109
Dialer: &kafka.Dialer{
110-
ClientID: cfg.ClientId,
110+
ClientID: cfg.ClientID,
111111
},
112112
}
113113

producer_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type WriterConfig struct {
3030
type ProducerConfig struct {
3131
SASL *SASLConfig
3232
TLS *TLSConfig
33-
ClientId string
33+
ClientID string
3434
Writer WriterConfig
3535
}
3636

@@ -70,7 +70,7 @@ func (c ProducerConfig) newKafkaWriter() (*kafka.Writer, error) {
7070
func (c ProducerConfig) newKafkaTransport() (*kafka.Transport, error) {
7171
transport := &Transport{
7272
Transport: &kafka.Transport{
73-
ClientID: c.ClientId,
73+
ClientID: c.ClientID,
7474
},
7575
}
7676

0 commit comments

Comments
 (0)