fix: missing SetupLifecycles

This commit is contained in:
Derrick Hammer 2024-01-28 03:29:52 -05:00
parent 9bb7a4cc83
commit ab3dd648e1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -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"),