haveibeensquatted / twistrs

A domain name permutation and enumeration library powered by Rust.

Home Page:https://haveibeensquatted.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate `WhoIs` calls to non-blocking async variants

JuxhinDB opened this issue · comments

Currently WhoIs lookup is blocking which causes problems when trying to scale the functionality to hundreds of concurrent requests.

https://github.com/JuxhinDB/twistrs/blob/1f359b5797937115a511847954b5b033cd1bdc22/twistrs/src/enrich.rs#L357-L371

Should take a look at the whois_rust crate and see if it's possible to refactor this to an async call - https://docs.rs/whois-rust/latest/whois_rust/#asynchronous-apis