File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { chrome } from "../crawlers" ;
22import { createCachedDataLoader } from "../utils/cache" ;
3- import { DAY_MS } from "../utils/time" ;
3+ import { HOUR_MS } from "../utils/time" ;
44
55export function createChromeService ( ) {
66 const loader = createCachedDataLoader <
77 string ,
88 Gql . ChromeExtension | undefined
9- > ( DAY_MS , ( ids ) =>
9+ > ( HOUR_MS , ( ids ) =>
1010 Promise . all ( ids . map ( ( id ) => chrome . crawlExtension ( id , "en" ) ) ) ,
1111 ) ;
1212
Original file line number Diff line number Diff line change 11import { createFirefoxApiClient } from "../apis" ;
2- import { DAY_MS } from "../utils/time" ;
2+ import { HOUR_MS } from "../utils/time" ;
33import { createCachedDataLoader } from "../utils/cache" ;
44
55export function createFirefoxService ( ) {
@@ -8,7 +8,7 @@ export function createFirefoxService() {
88 const loader = createCachedDataLoader <
99 string | number ,
1010 Gql . FirefoxAddon | undefined
11- > ( DAY_MS , ( ids ) => Promise . all ( ids . map ( ( id ) => firefox . getAddon ( id ) ) ) ) ;
11+ > ( HOUR_MS , ( ids ) => Promise . all ( ids . map ( ( id ) => firefox . getAddon ( id ) ) ) ) ;
1212
1313 return {
1414 getAddon : ( id : string | number ) => loader . load ( id ) ,
You can’t perform that action at this time.
0 commit comments