diff --git a/cmd/setup/setup.go b/cmd/setup/setup.go index 73489578f8..fd4cbda285 100644 --- a/cmd/setup/setup.go +++ b/cmd/setup/setup.go @@ -571,8 +571,6 @@ func initProjections( ctx context.Context, eventstoreClient *eventstore.Eventstore, ) error { - logging.Info("init-projections is currently in beta") - for _, p := range projection.Projections() { if err := migration.Migrate(ctx, eventstoreClient, p); err != nil { logging.WithFields("name", p.String()).OnError(err).Error("projection migration failed") diff --git a/internal/auth_request/repository/cache/cache.go b/internal/auth_request/repository/cache/cache.go index a59f291d53..19c0b4d976 100644 --- a/internal/auth_request/repository/cache/cache.go +++ b/internal/auth_request/repository/cache/cache.go @@ -27,6 +27,9 @@ func Start(dbClient *database.DB, amountOfCachedAuthRequests uint16) *AuthReques cache := &AuthRequestCache{ client: dbClient, } + if amountOfCachedAuthRequests == 0 { + return cache + } idCache, err := lru.New[string, *domain.AuthRequest](int(amountOfCachedAuthRequests)) logging.OnError(err).Info("auth request cache disabled") if err == nil {