Skip to content

Conversation

@lukevalenta
Copy link
Contributor

Unfortunately, we can't use ctx.id.name to find a Durable Object's name within the DO itself (this previously worked only for local testing, but has been removed: cloudflare/workerd#4351). Instead, we can iterate over all possible names for the durable object based on the app configuration until we find the correct one.

Also, clean up some clippy lint complaints.

Unfortunately, we can't use ctx.id.name to find a Durable Object's name within the DO itself (this previously worked only for local testing, but has been removed: cloudflare/workerd#4351). Instead, we can iterate over all possible names for the durable object based on the app configuration until we find the correct one.

Also, clean up some clippy lint complaints.
@lukevalenta lukevalenta self-assigned this Jul 10, 2025
@lukevalenta lukevalenta requested review from bwesterb and cjpatton July 10, 2025 12:16
@lukevalenta lukevalenta merged commit 9a69712 into main Jul 10, 2025
1 check passed
@lukevalenta lukevalenta deleted the lvalenta/durable-object-name branch July 10, 2025 12:47
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.

2 participants