@@ -14,15 +14,14 @@ import {
14
14
useMemo ,
15
15
useState ,
16
16
} from "react" ;
17
- import { useQuery } from "react-query" ;
17
+
18
18
import { type ProxyLatencyReport , useProxyLatency } from "./useProxyLatency" ;
19
19
20
20
export type Proxies = readonly Region [ ] | readonly WorkspaceProxy [ ] ;
21
21
export type ProxyLatencies = Record < string , ProxyLatencyReport > ;
22
22
export interface ProxyContextValue {
23
23
// proxy is **always** the workspace proxy that should be used.
24
24
// The 'proxy.selectedProxy' field is the proxy being used and comes from either:
25
- // 1. The user manually selected this proxy. (saved to local storage)
26
25
// 2. The default proxy auto selected because:
27
26
// a. The user has not selected a proxy.
28
27
// b. The user's selected proxy is not in the list of proxies.
@@ -74,8 +73,7 @@ export interface ProxyContextValue {
74
73
interface PreferredProxy {
75
74
// proxy is the proxy being used. It is provided for
76
75
// getting the fields such as "display_name" and "id"
77
- // Do not use the fields 'path_app_url' or 'wildcard_hostname' from this
78
- // object. Use the preferred fields.
76
+ // Do not use the fields 'path_app_url' or 'wildcard_hostname' from this // object. Use the preferred fields.
79
77
proxy : Region | undefined ;
80
78
// PreferredPathAppURL is the URL of the proxy or it is the empty string
81
79
// to indicate using relative paths. To add a path to this:
0 commit comments