File tree 1 file changed +1
-13
lines changed
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -23,24 +23,12 @@ import { ConnectivityState } from "./channel";
23
23
import { ChildLoadBalancerHandler } from "./load-balancer-child-handler" ;
24
24
import { Status } from "./constants" ;
25
25
import { Metadata } from "./metadata" ;
26
+ import { isLocalitySubchannelAddress , LocalitySubchannelAddress } from "./load-balancer-priority" ;
26
27
27
28
const TYPE_NAME = 'weighted_target' ;
28
29
29
30
const DEFAULT_RETENTION_INTERVAL_MS = 15 * 60 * 1000 ;
30
31
31
- /* These should be imported from load-balancer-priority.ts or factored into
32
- * a separate file */
33
-
34
- export type LocalitySubchannelAddress = SubchannelAddress & {
35
- localityPath : string [ ] ;
36
- } ;
37
-
38
- export function isLocalitySubchannelAddress (
39
- address : SubchannelAddress
40
- ) : address is LocalitySubchannelAddress {
41
- return Array . isArray ( ( address as LocalitySubchannelAddress ) . localityPath ) ;
42
- }
43
-
44
32
/**
45
33
* Represents a picker and a subinterval of a larger interval used for randomly
46
34
* selecting an element of a list of these objects.
You can’t perform that action at this time.
0 commit comments