File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { environment } from '../../environment' ;
22import { gStore } from '../storage/store' ;
33import { THRESHOLD_CACHE } from '../storage/keys' ;
4+ import type { ThresholdEntry } from '../types/floatdb' ;
45
56const THRESHOLDS_URL = `${ environment . floatdb_gateway_url } /v1/ranks/thresholds/bin` ;
67const CACHE_DURATION_MS = 60 * 60 * 1000 ; // 1 hour
78const RETRY_AFTER_FAILURE_MS = 15 * 60 * 1000 ; // 15 minutes
89
9- export interface ThresholdEntry {
10- low : number ;
11- high : number ;
12- }
13-
1410interface ThresholdCache {
1511 lastUpdated : number ;
1612 thresholds : Record < string , ThresholdEntry > ;
Original file line number Diff line number Diff line change 33 */
44import { SerializedFilter } from '../filter/types' ;
55import type { ItemSchema } from '../types/schema' ;
6- import type { ThresholdEntry } from '../services/threshold_fetcher ' ;
6+ import type { ThresholdEntry } from '../types/floatdb ' ;
77
88export enum StorageKey {
99 // Backwards compatible with <3.0.0
Original file line number Diff line number Diff line change 1+ export interface ThresholdEntry {
2+ low : number ;
3+ high : number ;
4+ }
You can’t perform that action at this time.
0 commit comments