From 297e23aa95e01c88c252ce2fe42b2d97a6c2e9f5 Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Mon, 21 Oct 2024 14:31:00 -0400 Subject: [PATCH] fix: specify a smallish page size --- lib/auth/auth.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/auth/auth.go b/lib/auth/auth.go index a8a960d2c6a42..4c517f5b7b1a6 100644 --- a/lib/auth/auth.go +++ b/lib/auth/auth.go @@ -1502,8 +1502,6 @@ func (a *Server) runPeriodicOperations() { case localReleaseCheckKey: go a.syncReleaseAlerts(a.closeCtx, false) case instancePeriodicsKey: - // instance periodics are rate-limited and may be time-consuming in large - // clusters, so launch them in the background. go a.doInstancePeriodics(a.closeCtx) case desktopCheckKey: go a.syncDesktopsLimitAlert(a.closeCtx) @@ -1527,7 +1525,7 @@ func (a *Server) tallyRoles(ctx context.Context) { a.logger.DebugContext(ctx, "tallying roles completed", "role_count", count) }() - req := &proto.ListRolesRequest{} + req := &proto.ListRolesRequest{Limit: 20} readLimiter := time.NewTicker(20 * time.Millisecond) defer readLimiter.Stop()