Skip to content

Commit 45d0e4c

Browse files
committed
wip
1 parent 3cae4b0 commit 45d0e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/contexts/ProxyContext.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
106106
// proxyMap is a map of the proxy path_app_url to the proxy object.
107107
// This is for the observer to know which requests are important to
108108
// record.
109-
const proxyChecks = proxiesResp.regions.reduce((acc, proxy) => {
109+
const proxyChecks2 = proxiesResp.regions.reduce((acc, proxy) => {
110110
if (!proxy.healthy) {
111111
return acc
112112
}
113113

114-
const url = new URL("/healthz", proxy.path_app_url)
114+
const url = new URL("/latency-check", proxy.path_app_url)
115115
acc[url.toString()] = proxy
116116
return acc
117117
}, {} as Record<string, Region>)
@@ -125,7 +125,7 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
125125
return
126126
}
127127

128-
const check = proxyChecks[entry.name]
128+
const check = proxyChecks2[entry.name]
129129
if (!check) {
130130
// This is not a proxy request.
131131
return

0 commit comments

Comments
 (0)