diff --git a/src/features/policies/useCheckEdit.ts b/src/features/policies/useCheckEdit.ts index 4b1704bf..3ef8f17e 100644 --- a/src/features/policies/useCheckEdit.ts +++ b/src/features/policies/useCheckEdit.ts @@ -11,7 +11,6 @@ export type CheckEditView = { available: boolean; busy: boolean; changed: boolean; - // Why Save is disabled, shown under it. fields: Array<{id: CheckField; label: string; value: string; description: string; error?: string; change: (value: string) => void}>; show: () => void; close: () => void; diff --git a/src/features/shared/useLifecycle.ts b/src/features/shared/useLifecycle.ts index a3dfbdd1..ee249b20 100644 --- a/src/features/shared/useLifecycle.ts +++ b/src/features/shared/useLifecycle.ts @@ -5,8 +5,7 @@ import {useRuntimeOperations} from '../../store'; import {toast, toastFailure} from '../../ui/ui'; import {lifecycleActions} from './lifecycle'; -// Runs lifecycle operations and reports each outcome in a toast. The overview, the settings page and the top bar's -// reload button share it. +// Runs lifecycle operations and reports each outcome in a toast. The overview and the top bar's reload button share it. export function useLifecycle(runtime: Runtime | undefined, capabilities: Capabilities | undefined, refetch: () => void) { const t = useT(); const operations = useRuntimeOperations(runtime, capabilities, refetch); diff --git a/src/store/dns.ts b/src/store/dns.ts index 319bf251..917a596d 100644 --- a/src/store/dns.ts +++ b/src/store/dns.ts @@ -107,8 +107,8 @@ export function deleteCacheName(api: Api, query: Parameters changed(api)); } const DELETE_CONCURRENCY = 4; -// Deletes the entries a few at a time; the client itself waits out a 429 or 503 with Retry-After. A failed entry is -// counted and the rest still go, so the result says how far it got. An entry that is already gone (404) is not a failure. +// Deletes the entries a few at a time; a DELETE is sent once, so a refusal counts as failed. A failed entry is counted +// and the rest still go, so the result says how far it got. An entry that is already gone (404) is not a failure. export async function deleteCacheEntries(api: Api, ids: string[], signal: AbortSignal) { let next = 0; let deleted = 0;