Trim access-review connector comments
Cut verbose inline comments across the access-review connector changes:
the mechanical fact stays at the read site, while incident backstory
("millions of error logs in prod") and provider-specific rationale (why
Clerk reviews the wrong population) move to the commit history where they
belong. Also tighten a loose "a 4xx" to "an auth/not-found 4xx" so the
terminal-classification contract is not overstated. No behavior change.
Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -151,9 +151,9 @@ func (d *TailscaleDriver) fetchUsers(ctx context.Context) ([]tailscaleUser, erro
|
||||
}()
|
||||
|
||||
// Classify the status so the source-name worker (which reuses this via
|
||||
// tailscaleNameResolver) treats a 4xx as terminal instead of hot-looping.
|
||||
// The sentinel is inert on the ListAccounts sync path, which does not
|
||||
// inspect it.
|
||||
// tailscaleNameResolver) treats an auth/not-found 4xx as terminal instead
|
||||
// of hot-looping. The sentinel is inert on the ListAccounts sync path,
|
||||
// which does not inspect it.
|
||||
if httpResp.StatusCode < 200 || httpResp.StatusCode >= 300 {
|
||||
return nil, nameStatusError("tailscale users", httpResp.StatusCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user