include location hint in remote checker DO name (#223)

This commit is contained in:
bcdi authored and GitHub committed 2026-10-07 20:22:32 +08:00
1 parent a5670e51cb
commit 520c0b8dcf
1 file changed
+1 -1
+1 -1
View File
@@ -365,7 +365,7 @@ export async function doMonitor(monitor: MonitorTarget, defaultLocation: string,
let resp
if (monitor.checkProxy.startsWith('worker://')) {
const doLoc = monitor.checkProxy.replace('worker://', '')
const doId = env.REMOTE_CHECKER_DO.idFromName(monitor.id)
const doId = env.REMOTE_CHECKER_DO.idFromName(`${doLoc}:${monitor.id}`)
const doStub = env.REMOTE_CHECKER_DO.get(doId, {
locationHint: doLoc as DurableObjectLocationHint,
})