fn load_blacklist(&self) -> Result<()> {
        debug!("Loading blacklist from file...");
        let blacklist_file = OpenOptions::new().read(true)
                                               .write(true)
                                               .create(true)
                                               .open(BLACKLIST_PATH)?;
        let reader = BufReader::new(blacklist_file);
        let mut deflate_reader = DeflateDecoder::new(reader);

        let blacklist_result = deserialize_from(&mut deflate_reader);

        match blacklist_result {
            Ok(blacklist) => {
                let list: FnvHashSet<LocationID> = blacklist;
                info!("Loaded {} blacklist entries from disk.", list.len());
                self.0.write().structure_blacklist = list;
            }
            Err(error) => {
                info!("No blacklist entries loaded from disk: {:?}", error);
            }
        }

        Ok(())
    }
/// Load blacklist from disk or create cache
Load blacklist from disk or create cache
Load blacklist from disk or create cache
fn load_blacklist(&self) -> Result<()> {
        debug!("Loading blacklist from file...");
        let blacklist_file = OpenOptions::new().read(true)
                                               .write(true)
                                               .create(true)
                                               .open(BLACKLIST_PATH)?;
        let reader = BufReader::new(blacklist_file);
        let mut deflate_reader = DeflateDecoder::new(reader);
        let blacklist_result = deserialize_from(&mut deflate_reader);
        match blacklist_result {
            Ok(blacklist) => {
                let list: FnvHashSet<LocationID> = blacklist;
                info!("Loaded {} blacklist entries from disk.", list.len());
                self.0.write().structure_blacklist = list;
            }
            Err(error) => {
                info!("No blacklist entries loaded from disk: {:?}", error);
            }
        }
        Ok(())
    }
fn load_blacklist ( & self ) -> Result < ( ) > { debug ! ( " " ) ; let blacklist_file = OpenOptions :: new ( ) . read ( true ) . write ( true ) . create ( true ) . open ( BLACKLIST_PATH ) ? ; let reader = BufReader :: new ( blacklist_file ) ; let mut deflate_reader = DeflateDecoder :: new ( reader ) ; let blacklist_result = deserialize_from ( & mut deflate_reader ) ; match blacklist_result { Ok ( blacklist ) => { let list : FnvHashSet < LocationID > = blacklist ; info ! ( " " list len ( ) ) ; self . 0 . write ( ) . structure_blacklist = list ; } Err ( error ) => { info ! ( " " error ) ; } } Ok ( ( ) ) }
Load blacklist from disk or create cache
Load blacklist from disk or create cache
&self
&self