feat: crawl accepts rate-limit config
This commit is contained in:
parent
7e0c235275
commit
7d60189b25
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ pub struct CrawlResp<'a> {
|
|||
#[async_trait]
|
||||
pub trait SCForge: std::marker::Send + std::marker::Sync + CloneSPForge {
|
||||
async fn is_forge(&self) -> bool;
|
||||
async fn crawl(&self, limit: u64, page: u64) -> CrawlResp;
|
||||
async fn crawl(&self, limit: u64, page: u64, rate_limit: u64) -> CrawlResp;
|
||||
fn get_hostname(&self) -> &str;
|
||||
fn forge_type(&self) -> ForgeImplementation;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue