fix: kafka tls config

This commit is contained in:
loveuer
2025-04-07 15:44:24 +08:00
parent 2e13671bb7
commit b8905b53f9
4 changed files with 37 additions and 25 deletions

View File

@ -2,7 +2,6 @@ package kafka
import (
"context"
"crypto/tls"
"errors"
"time"
@ -34,7 +33,7 @@ Retry:
Async: false,
Transport: &kfkgo.Transport{
DialTimeout: 30 * time.Second,
TLS: &tls.Config{InsecureSkipVerify: true}, // todo
TLS: c.tls, // todo
SASL: c.mechanism,
Context: c.ctx,
},