File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -38,4 +38,9 @@ export abstract class HTKEventBase {
38
38
@observable
39
39
public pinned : boolean = false ;
40
40
41
+ // Logic elsewhere can put values into these caches to cache calculations
42
+ // about this event weakly, so they GC with the event.
43
+ // Keyed by symbols only, so we know we never have conflicts.
44
+ public cache = observable . map ( new Map < symbol , unknown > ( ) , { deep : false } ) ;
45
+
41
46
}
Original file line number Diff line number Diff line change @@ -217,11 +217,6 @@ export class HttpExchange extends HTKEventBase {
217
217
this . _apiMetadataPromise = apiStore . getApi ( this . request ) ;
218
218
}
219
219
220
- // Logic elsewhere can put values into these caches to cache calculations
221
- // about this exchange weakly, so they GC with the exchange.
222
- // Keyed by symbols only, so we know we never have conflicts.
223
- public cache = observable . map ( new Map < symbol , unknown > ( ) , { deep : false } ) ;
224
-
225
220
public readonly request : HtkRequest ;
226
221
public readonly id : string ;
227
222
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ export class RTCConnection extends HTKEventBase {
27
27
28
28
readonly id = this . connectionEvent . sessionId ;
29
29
30
- public readonly cache = observable . map ( new Map < symbol , unknown > ( ) , { deep : false } ) ;
31
-
32
30
isRTCConnection ( ) : this is RTCConnection {
33
31
return true ;
34
32
}
You can’t perform that action at this time.
0 commit comments