rename --dedupStoreUrl -> redisDedupUrl

bump version to 1.9.0
fix typo
This commit is contained in:
Ilya Kreymer 2025-09-17 23:36:25 -07:00
parent bbe084daa0
commit db9e78e823
4 changed files with 5 additions and 5 deletions

View file

@ -341,7 +341,7 @@ export class Crawler {
async initCrawlState() {
const redisUrl = this.params.redisStoreUrl || "redis://localhost:6379/0";
const dedupRedisUrl = this.params.dedupStoreUrl || redisUrl;
const dedupRedisUrl = this.params.redisDedupUrl || redisUrl;
if (!redisUrl.startsWith("redis://")) {
logger.fatal(

View file

@ -17,7 +17,7 @@ export class CrawlIndexer {
return yargs(process.argv)
.usage("indexer [options]")
.options({
dedupStoreUrl: {
redisDedupUrl: {
describe: "URL for remote redis instance to index into",
type: "string",
required: true,
@ -43,7 +43,7 @@ export class CrawlIndexer {
const params = this.initArgs();
const redis = await initRedisWaitForSuccess(params.dedupStoreUrl);
const redis = await initRedisWaitForSuccess(params.redisDedupUrl);
const dedupIndex = new RedisDedupIndex(redis);
const allFiles = [];

View file

@ -445,7 +445,7 @@ class ArgParser {
default: "redis://localhost:6379/0",
},
dedupStoreUrl: {
redisDedupUrl: {
describe:
"If set, url for remote redis server to store state. Otherwise, using local redis instance",
type: "string",

View file

@ -2118,7 +2118,7 @@ async function createRevisitForResponse(
const origWarcHeaders = responseRecord.warcHeaders.headers;
for (const header in REVISIT_COPY_HEADERS) {
for (const header of REVISIT_COPY_HEADERS) {
if (origWarcHeaders.has(header)) {
warcHeaders[header] = origWarcHeaders.get(header)!;
}