We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49300f0 commit 236d68cCopy full SHA for 236d68c
kafka/config.go
@@ -20,6 +20,10 @@ func (c *Config) SetDefaults() {
20
}
21
22
func (c *Config) Validate() error {
23
+ if len(c.Brokers) == 0 {
24
+ return fmt.Errorf("no seed brokers specified, at least one must be configured")
25
+ }
26
+
27
err := c.TLS.Validate()
28
if err != nil {
29
return fmt.Errorf("failed to validate TLS config: %w", err)
0 commit comments