Skip to content

Commit

Permalink
chore(subscibe): fix deprecated indexmap remove_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 19, 2024
1 parent 061920e commit ae3a508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "spider_rs"
version = "0.0.19"
version = "0.0.20"
description = "The fastest web crawler written in Rust ported to nodejs."
repository = "https://github.com/spider-rs/spider-nodejs"

Expand Down
4 changes: 2 additions & 2 deletions src/website.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Website {
match handle {
Some(h) => {
h.abort();
self.subscription_handles.remove_entry(&id);
self.subscription_handles.swap_remove_entry(&id);
true
}
_ => false,
Expand Down Expand Up @@ -119,7 +119,7 @@ impl Website {
match handle {
Some(h) => {
h.abort();
slf.crawl_handles.remove_entry(&id);
slf.crawl_handles.swap_remove_entry(&id);
true
}
_ => false,
Expand Down

0 comments on commit ae3a508

Please sign in to comment.