fix: missing SetupLifecycles
This commit is contained in:
parent
9bb7a4cc83
commit
ab3dd648e1
|
@ -50,6 +50,8 @@ func main() {
|
|||
protocols.BuildProtocols(config),
|
||||
api.BuildApis(config),
|
||||
fx.Provide(api.NewCasbin),
|
||||
fx.Invoke(protocols.SetupLifecycles),
|
||||
fx.Invoke(api.SetupLifecycles),
|
||||
fx.Provide(func(lc fx.Lifecycle, config *viper.Viper) *http.Server {
|
||||
srv := &http.Server{
|
||||
Addr: config.GetString("core.port"),
|
||||
|
|
Loading…
Reference in New Issue