mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-12-08 06:09:48 +00:00
rename --dedupStoreUrl -> redisDedupUrl
bump version to 1.9.0 fix typo
This commit is contained in:
parent
bbe084daa0
commit
db9e78e823
4 changed files with 5 additions and 5 deletions
|
|
@ -341,7 +341,7 @@ export class Crawler {
|
||||||
|
|
||||||
async initCrawlState() {
|
async initCrawlState() {
|
||||||
const redisUrl = this.params.redisStoreUrl || "redis://localhost:6379/0";
|
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://")) {
|
if (!redisUrl.startsWith("redis://")) {
|
||||||
logger.fatal(
|
logger.fatal(
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export class CrawlIndexer {
|
||||||
return yargs(process.argv)
|
return yargs(process.argv)
|
||||||
.usage("indexer [options]")
|
.usage("indexer [options]")
|
||||||
.options({
|
.options({
|
||||||
dedupStoreUrl: {
|
redisDedupUrl: {
|
||||||
describe: "URL for remote redis instance to index into",
|
describe: "URL for remote redis instance to index into",
|
||||||
type: "string",
|
type: "string",
|
||||||
required: true,
|
required: true,
|
||||||
|
|
@ -43,7 +43,7 @@ export class CrawlIndexer {
|
||||||
|
|
||||||
const params = this.initArgs();
|
const params = this.initArgs();
|
||||||
|
|
||||||
const redis = await initRedisWaitForSuccess(params.dedupStoreUrl);
|
const redis = await initRedisWaitForSuccess(params.redisDedupUrl);
|
||||||
const dedupIndex = new RedisDedupIndex(redis);
|
const dedupIndex = new RedisDedupIndex(redis);
|
||||||
|
|
||||||
const allFiles = [];
|
const allFiles = [];
|
||||||
|
|
|
||||||
|
|
@ -445,7 +445,7 @@ class ArgParser {
|
||||||
default: "redis://localhost:6379/0",
|
default: "redis://localhost:6379/0",
|
||||||
},
|
},
|
||||||
|
|
||||||
dedupStoreUrl: {
|
redisDedupUrl: {
|
||||||
describe:
|
describe:
|
||||||
"If set, url for remote redis server to store state. Otherwise, using local redis instance",
|
"If set, url for remote redis server to store state. Otherwise, using local redis instance",
|
||||||
type: "string",
|
type: "string",
|
||||||
|
|
|
||||||
|
|
@ -2118,7 +2118,7 @@ async function createRevisitForResponse(
|
||||||
|
|
||||||
const origWarcHeaders = responseRecord.warcHeaders.headers;
|
const origWarcHeaders = responseRecord.warcHeaders.headers;
|
||||||
|
|
||||||
for (const header in REVISIT_COPY_HEADERS) {
|
for (const header of REVISIT_COPY_HEADERS) {
|
||||||
if (origWarcHeaders.has(header)) {
|
if (origWarcHeaders.has(header)) {
|
||||||
warcHeaders[header] = origWarcHeaders.get(header)!;
|
warcHeaders[header] = origWarcHeaders.get(header)!;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue