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() {
|
||||
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(
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)!;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue