feat: crawl accepts rate-limit config

This commit is contained in:
Aravinth Manivannan 2022-06-04 20:34:41 +05:30
parent 7e0c235275
commit 7d60189b25
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -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;
}