Skip to content

chore(dwctl): remove unused get_realtime_api_key test helper - #1707

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-dwctl-remove-unused-get-realtime-api-key-tes-a57f2e
Open

detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-dwctl-remove-unused-get-realtime-api-key-tes-a57f2e

Conversation

@detail-app

@detail-app detail-app Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Remove the get_realtime_api_key helper and its two write-only call sites
in the sla.rs end-to-end escalation tests. The function created a hidden
realtime API key for the user, but its return value was bound to
_user_realtime_api_key and never read. The batch daemon uses the batch
API key from the request template (request_data.api_key) for HTTP calls,
not a separate realtime key — confirmed by the similar zdr_sentinel.rs
batch E2E test running without a realtime key. The helper was only used in
tests, the variable has been write-only since introduction, and the
..DaemonConfig::default() cascade leaves no orphaned code behind.

History


Dead Code PRs can be configured here.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 8, 2026

Copy link
Copy Markdown

Deploying control-layer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 96cb343
Status: ✅  Deploy successful!
Preview URL: https://8bc24c3d.control-layer.pages.dev
Branch Preview URL: https://detail-dead-code-chore-dwctl-scju.control-layer.pages.dev

View logs

@detail-app
detail-app Bot requested a review from pjb157 September 8, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant