apple-1024
apple-1024
when i use RegisterDependency to implements singleton bean ``` func main(){ IrisApp = iris.New() IrisApp.RegisterDependency(NewService) party:=IrisApp.Party("/test") irisMvc := mvc.New(party) irisMvc.handle(new(controller)) } func NewService(){ return &Test{name:"kangkang"} } type Test struct{ name...
the error "Sync leader is unreachable" happend when i test to insert data to tdengine
Describe the bug 生成http接口代码时,增加路由注册,会判断是否重复存在,此处判断逻辑有点问题,会出现误判断导致代码生成失败,如:"strategy.Register(r)"和"appstrategy.Register(r)"出现冲突 To Reproduce Steps to reproduce the behavior: 代码位置 https://github.com/cloudwego/hertz/tree/develop/cmd/hz/generator/router.go ``` if !bytes.Contains(file, []byte(register.DepPkg)) { file, err = util.AddImport(registerPath, register.DepPkgAlias, register.DepPkg) if err != nil { return...