We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
文件路径:internal/mq/kafka/kafka.go 这里有报错
func init() { mq, err := g.Cfg().Get(gctx.New(), "mq") if err != nil { panic(err) } ip := mq.Map()["kafka"].(string) // 这里有报错 pool := []string{ip} builder := NewKafkaBuilder(pool) kafkaPool := NewKafkaPool().SetBuilder(builder) err = kafkaPool.Init() if err != nil { fmt.Println("初始化kafka失败:", err.Error()) os.Exit(1) } }
改成
func init() { mq, err := g.Cfg().Get(gctx.New(), "mq") if err != nil { panic(err) } if ip, ok := mq.Map()["kafka"].(string); ok { // 改 pool := []string{ip} builder := NewKafkaBuilder(pool) kafkaPool := NewKafkaPool().SetBuilder(builder) err = kafkaPool.Init() if err != nil { fmt.Println("初始化kafka失败:", err.Error()) os.Exit(1) } } }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
直接提pr啊
No branches or pull requests
文件路径:internal/mq/kafka/kafka.go

这里有报错
改成
The text was updated successfully, but these errors were encountered: