mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +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(())
|
||||
}
|
||||
|
||||
pub fn allows(&self, list_type: AccessListMode, info_hash_bytes: &[u8; 20]) -> bool {
|
||||
match list_type {
|
||||
pub fn allows(&self, list_mode: AccessListMode, info_hash_bytes: &[u8; 20]) -> bool {
|
||||
match list_mode {
|
||||
AccessListMode::Require => self.0.load().contains(info_hash_bytes),
|
||||
AccessListMode::Forbid => !self.0.load().contains(info_hash_bytes),
|
||||
AccessListMode::Ignore => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue