We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getRandom
1 parent 0de7bfc commit a3a618eCopy full SHA for a3a618e
src/content/docs/containers/examples/stateless.mdx
@@ -23,7 +23,7 @@ class Backend extends Container {
23
export default {
24
async fetch(request: Request, env: Env): Promise<Response> {
25
// note: "getRandom" to be replaced with latency-aware routing in the near future
26
- const containerInstance = getRandom(env.BACKEND, INSTANCE_COUNT);
+ const containerInstance = await getRandom(env.BACKEND, INSTANCE_COUNT);
27
return containerInstance.fetch(request);
28
},
29
};
0 commit comments