File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const constructQueueKey = (team_id: string) =>
9
9
const stalledJobTimeoutMs = 2 * 60 * 1000 ;
10
10
11
11
export function getConcurrencyLimitMax ( plan : string ) : number {
12
+ if ( plan === "growth" ) return 100 ;
12
13
return getRateLimiterPoints ( RateLimiterMode . Scrape , undefined , plan ) ;
13
14
}
14
15
Original file line number Diff line number Diff line change @@ -401,13 +401,13 @@ export class WebCrawler {
401
401
402
402
public async extractLinksFromHTML ( html : string , url : string ) {
403
403
try {
404
- return ( await this . extractLinksFromHTMLRust ( html , url ) ) . map ( x => {
404
+ return [ ... new Set ( ( await this . extractLinksFromHTMLRust ( html , url ) ) . map ( x => {
405
405
try {
406
406
return new URL ( x , url ) . href
407
407
} catch ( e ) {
408
408
return null ;
409
409
}
410
- } ) . filter ( x => x !== null ) as string [ ] ;
410
+ } ) . filter ( x => x !== null ) as string [ ] ) ] ;
411
411
} catch ( error ) {
412
412
this . logger . error ( "Failed to call html-transformer! Falling back to cheerio..." , {
413
413
error,
You can’t perform that action at this time.
0 commit comments