chore(features): correct stale lifecycle and DNS comments

This commit is contained in:
Zakk committed 2026-10-02 22:33:42 +10:00
1 parent 58b4b2a687
commit d2040809ff
3 files changed
+3 -5

No files matched your search

-1
View File
@@ -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;
+1 -2
View File
@@ -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);
+2 -2
View File
@@ -107,8 +107,8 @@ export function deleteCacheName(api: Api, query: Parameters<Api['deleteDnsCacheB
return api.deleteDnsCacheByName(query, signal).finally(() => 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;