Skip to content

Commit

Permalink
fix: specify a smallish page size
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy committed Oct 21, 2024
1 parent 41f0139 commit 297e23a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit 297e23a

Please sign in to comment.