Skip to content

Commit ab3a64f

Browse files
committed
fix: fixed build for bloomcache
1 parent d3cf2f6 commit ab3a64f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/detection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ lazy_static::lazy_static! {
1111
};
1212

1313
pub static ref SAFE_STRING_BLOOM: std::sync::Mutex<bloomfilter::Bloom<String>> = {
14-
std::sync::Mutex::new(bloomfilter::Bloom::new_for_fp_rate(100000, 0.01))
14+
std::sync::Mutex::new(bloomfilter::Bloom::new_for_fp_rate(100000, 0.01).unwrap())
1515
};
1616

17-
pub static ref SUSPICIOUS_DOMAINS: HashSet<String> = {
17+
pub static ref SUSSY_DOMAINS: HashSet<String> = {
1818
[
1919
"discord.com",
2020
"discordapp.com",

src/scanner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::database::GOOD_LINKS;
33
use crate::detection::{
44
cache_safe_string, calculate_detection_hash, is_cached_safe_string, CRYPTO_REGEX,
55
ENTROPY_THRESHOLD, IPV6_REGEX, IP_REGEX, MALICIOUS_PATTERN_REGEX, NAME_LENGTH_THRESHOLD,
6-
SUSPICIOUS_DOMAINS, URL_REGEX,
6+
SUSSY_DOMAINS, URL_REGEX,
77
};
88
use crate::errors::ScanError;
99
use crate::parser::parse_class_structure;
@@ -96,7 +96,7 @@ impl CollapseScanner {
9696

9797
Ok(CollapseScanner {
9898
good_links,
99-
suspicious_domains: SUSPICIOUS_DOMAINS.clone(),
99+
suspicious_domains: SUSSY_DOMAINS.clone(),
100100
ignored_suspicious_keywords,
101101
ignored_crypto_keywords,
102102
options,

0 commit comments

Comments
 (0)