aquatic_common: rename a AccessList function argument

This commit is contained in:
Joakim Frostegård 2021-10-16 17:53:58 +02:00
parent 3678e86654
commit f32cb522e2

View file

@ -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,