Remove self from Crawls and Imports in actors at end of task
In case the user never listens to the stream so that I do not create inifinitely growing hashmaps in the server memory.
This commit is contained in:
@@ -66,11 +66,13 @@ async fn main() -> Result<()> {
|
||||
client.clone(),
|
||||
domain_locks.clone(),
|
||||
config.content_dir.clone(),
|
||||
crawls.clone(),
|
||||
);
|
||||
let _ = crawl_scheduler.bootstrap().await;
|
||||
let importer = ImporterHandle::new(
|
||||
pool.clone(),
|
||||
crawl_scheduler.clone(),
|
||||
imports.clone(),
|
||||
);
|
||||
|
||||
let addr = format!("{}:{}", &config.host, &config.port).parse()?;
|
||||
|
||||
Reference in New Issue
Block a user