Skip to content

Commit 16e5293

Browse files
authored
add missing await to getRandom (#24143)
1 parent 3d531c2 commit 16e5293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/containers/examples/container-backend.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default {
150150
const url = new URL(request.url);
151151
if (url.pathname.startsWith("/api")) {
152152
// note: "getRandom" to be replaced with latency-aware routing in the near future
153-
const containerInstance = getRandom(env.BACKEND, INSTANCE_COUNT);
153+
const containerInstance = await getRandom(env.BACKEND, INSTANCE_COUNT);
154154
return containerInstance.fetch(request);
155155
}
156156

0 commit comments

Comments
 (0)