File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { chrome } from "../crawlers" ;
2
2
import { createCachedDataLoader } from "../utils/cache" ;
3
- import { DAY_MS } from "../utils/time" ;
3
+ import { HOUR_MS } from "../utils/time" ;
4
4
5
5
export function createChromeService ( ) {
6
6
const loader = createCachedDataLoader <
7
7
string ,
8
8
Gql . ChromeExtension | undefined
9
- > ( DAY_MS , ( ids ) =>
9
+ > ( HOUR_MS , ( ids ) =>
10
10
Promise . all ( ids . map ( ( id ) => chrome . crawlExtension ( id , "en" ) ) ) ,
11
11
) ;
12
12
Original file line number Diff line number Diff line change 1
1
import { createFirefoxApiClient } from "../apis" ;
2
- import { DAY_MS } from "../utils/time" ;
2
+ import { HOUR_MS } from "../utils/time" ;
3
3
import { createCachedDataLoader } from "../utils/cache" ;
4
4
5
5
export function createFirefoxService ( ) {
@@ -8,7 +8,7 @@ export function createFirefoxService() {
8
8
const loader = createCachedDataLoader <
9
9
string | number ,
10
10
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 ) ) ) ) ;
12
12
13
13
return {
14
14
getAddon : ( id : string | number ) => loader . load ( id ) ,
You can’t perform that action at this time.
0 commit comments