mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_common: rename a AccessList function argument
This commit is contained in:
parent
3678e86654
commit
f32cb522e2
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ impl AccessList {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn allows(&self, list_type: AccessListMode, info_hash_bytes: &[u8; 20]) -> bool {
|
pub fn allows(&self, list_mode: AccessListMode, info_hash_bytes: &[u8; 20]) -> bool {
|
||||||
match list_type {
|
match list_mode {
|
||||||
AccessListMode::Require => self.0.load().contains(info_hash_bytes),
|
AccessListMode::Require => self.0.load().contains(info_hash_bytes),
|
||||||
AccessListMode::Forbid => !self.0.load().contains(info_hash_bytes),
|
AccessListMode::Forbid => !self.0.load().contains(info_hash_bytes),
|
||||||
AccessListMode::Ignore => true,
|
AccessListMode::Ignore => true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue