From 7d60189b258a9206c9e3c5766c691aed693c8702 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 4 Jun 2022 20:34:41 +0530 Subject: [PATCH] feat: crawl accepts rate-limit config --- forge/forge-core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge/forge-core/src/lib.rs b/forge/forge-core/src/lib.rs index 894d7e4..8810c5e 100644 --- a/forge/forge-core/src/lib.rs +++ b/forge/forge-core/src/lib.rs @@ -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; }