Fix qp-seedrake
This commit is contained in:
parent
54a468d079
commit
2ce8e2ba8e
@ -11,7 +11,6 @@ use std::path::PathBuf;
|
|||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use tokio::sync::mpsc::Receiver;
|
use tokio::sync::mpsc::Receiver;
|
||||||
|
|
||||||
use quickpeep_raker::config;
|
|
||||||
use quickpeep_raker::config::RakerConfig;
|
use quickpeep_raker::config::RakerConfig;
|
||||||
use quickpeep_raker::raking::{get_robots_txt_for, RakeIntent};
|
use quickpeep_raker::raking::{get_robots_txt_for, RakeIntent};
|
||||||
use quickpeep_raker::storage::records::{AllowedDomainRecord, WeedDomainRecord};
|
use quickpeep_raker::storage::records::{AllowedDomainRecord, WeedDomainRecord};
|
||||||
@ -41,8 +40,8 @@ pub async fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
let config_path = opts
|
let config_path = opts
|
||||||
.config
|
.config
|
||||||
.unwrap_or_else(|| PathBuf::from("qp_raker.toml"));
|
.unwrap_or_else(|| PathBuf::from("quickpeep.ron"));
|
||||||
let config = config::RakerConfig::load(&config_path).context("Failed to load config")?;
|
let config = RakerConfig::load(&config_path).context("Failed to load config")?;
|
||||||
|
|
||||||
if !config.raker.workbench_dir.exists() {
|
if !config.raker.workbench_dir.exists() {
|
||||||
bail!(
|
bail!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user