mirror of
https://github.com/YGGverse/btracker-scrape.git
synced 2026-03-31 17:15:34 +00:00
rename scrape method to get
This commit is contained in:
parent
4a5b82bf39
commit
fc830fa3be
1 changed files with 1 additions and 1 deletions
|
|
@ -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()?;
|
self.udp.as_ref()?;
|
||||||
let mut t = Result::default();
|
let mut t = Result::default();
|
||||||
if let Some(ref u) = self.udp {
|
if let Some(ref u) = self.udp {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue