rename scrape method to get

This commit is contained in:
yggverse 2025-09-09 11:09:00 +03:00
parent 4a5b82bf39
commit fc830fa3be

View file

@ -22,7 +22,7 @@ impl Scrape {
}
}
pub fn scrape(&self, info_hash: [u8; 20]) -> Option<Result> {
pub fn get(&self, info_hash: [u8; 20]) -> Option<Result> {
self.udp.as_ref()?;
let mut t = Result::default();
if let Some(ref u) = self.udp {