Skip to content

Commit

Permalink
fix: clientId
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Oct 29, 2021
1 parent 3439b9f commit 08d2582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kafkax/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func New(name string, cfg ...*sarama.Config) (Client, error) {
if hostname == "" {
hostname = netx.InternalIp()
}
config.ClientID = fmt.Sprint("sarama", "/", hostname, "/", os.Getpid())
config.ClientID = fmt.Sprint("sarama", "_", hostname, "_", os.Getpid())

config.Consumer.Return.Errors = true
config.Producer.Return.Successes = true
Expand Down

0 comments on commit 08d2582

Please sign in to comment.