-
Notifications
You must be signed in to change notification settings - Fork 479
Add routingMode option to GetDurableObjectOptions
#5525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7a08cc7 to
d5a16d4
Compare
|
The generated output of |
CodSpeed Performance ReportMerging #5525 will not alter performanceComparing Summary
Footnotes
|
d5a16d4 to
a14cc38
Compare
getPrimaryOnly option to GetDurableObjectOptionsroutingMode option to GetDurableObjectOptions
9adef6b to
85c05c0
Compare
|
Latest push updates types. Couldn't get |
85c05c0 to
3289720
Compare
| // `routingMode` may be be of interest to applications using Durable Objects replicas. It can be | ||
| // one of the following options: | ||
| // - none: the default, indicates we will pick for the application. | ||
| // - "primary-only": guarantees we route directly to the primary (skip any replicas.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: period outside of parens.
| // - "primary-only": guarantees we route directly to the primary (skip any replicas.) | |
| // - "primary-only": guarantees we route directly to the primary (skip any replicas). |
| JSG_STRUCT(locationHint, routingMode); | ||
|
|
||
| JSG_STRUCT_TS_DEFINE(type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"); | ||
| // Possible values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#providing-a-location-hint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that there are now multiple values in the struct, you may want to say DurableObjectLocationHint values from ...
| // Possible values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#providing-a-location-hint | |
| // DurableObjectLocationHint values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#providing-a-location-hint |
No description provided.