Skip to content

Commit

Permalink
Fix kafka config type error
Browse files Browse the repository at this point in the history
Signed-off-by: Enwei Jiao <[email protected]>
  • Loading branch information
jiaoew1991 committed Nov 22, 2023
1 parent e8c5e75 commit 650cdcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewKafkaClientInstanceWithConfig(ctx context.Context, config *paramtable.Ka
return nil, errors.New("context timeout when new kafka client")
}
timeout := time.Until(deadline).Milliseconds()
kafkaConfig.SetKey("socket.connection.setup.timeout.ms", timeout)
kafkaConfig.SetKey("socket.connection.setup.timeout.ms", strconv.FormatInt(timeout, 10))
}

if (config.SaslUsername.GetValue() == "" && config.SaslPassword.GetValue() != "") ||
Expand Down

0 comments on commit 650cdcd

Please sign in to comment.