fix: change property name
This commit is contained in:
parent
1bd4527300
commit
61012ae394
|
@ -23,11 +23,11 @@ func BuildApis(cm *config.Manager) fx.Option {
|
||||||
|
|
||||||
type initParams struct {
|
type initParams struct {
|
||||||
fx.In
|
fx.In
|
||||||
Protocols []registry.API `group:"api"`
|
Apis []registry.API `group:"api"`
|
||||||
}
|
}
|
||||||
|
|
||||||
options = append(options, fx.Invoke(func(params initParams) error {
|
options = append(options, fx.Invoke(func(params initParams) error {
|
||||||
for _, protocol := range params.Protocols {
|
for _, protocol := range params.Apis {
|
||||||
err := protocol.Init()
|
err := protocol.Init()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue