fix: some response could miss meta field (#1165)

This commit is contained in:
Aaron Ji 2025-03-13 11:51:24 +08:00 committed by GitHub
parent 9415c6a2be
commit f1aed656b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -237,6 +237,8 @@ export class SearcherHost extends RPCHost {
return;
}
chargeAmount = this.assignChargeAmount(lastScrapped, count);
this.assignTokenUsage(lastScrapped, chargeAmount, crawlWithoutContent);
rpcReflect.return(lastScrapped);
earlyReturn = true;
}, ((crawlerOptions.timeout || 0) * 1000) || this.reasonableDelayMs);