address op state review feedback (#2453)

* address op state review feedback
This commit is contained in:
Irena Rindos authored and GitHub committed 2022-09-16 09:13:37 -04:00
1 parent c73a13aa3e
commit 821d8317dc
6 files changed
+122 -55

No files matched your search

@@ -681,7 +681,7 @@ func (s Service) AuthorizeSession(ctx context.Context, req *pbs.AuthorizeSession
// worker IDs below is used to contain their IDs in the same order. This is
// used to fetch tags for filtering. But we avoid allocation unless we
// actually need it.
selectedWorkers, err := serversRepo.ListWorkers(ctx, []string{scope.Global.String()}, server.WithExcludeShutdownWorkers(true))
selectedWorkers, err := serversRepo.ListWorkers(ctx, []string{scope.Global.String()}, server.WithActiveWorkers(true))
if err != nil {
return nil, err
}