fix: disable cgg (panic cause of ofd impl) #4

Merged
nyyu merged 1 commit from slany/CGGItemSets:fix/cgg into master 2021-03-10 09:41:34 +01:00

View file

@ -15,7 +15,7 @@ mod data_source;
mod kb_data_source; mod kb_data_source;
mod pb_data_source; mod pb_data_source;
use cgg_data_source::CGGDataSource; // use cgg_data_source::CGGDataSource;
use data_source::DataSource; use data_source::DataSource;
use kb_data_source::KBDataSource; use kb_data_source::KBDataSource;
use pb_data_source::PBDataSource; use pb_data_source::PBDataSource;
@ -40,7 +40,10 @@ const USER_AGENT: &str =
const LOL_CHAMPS_DIR: &str = ".\\champs"; const LOL_CHAMPS_DIR: &str = ".\\champs";
fn main() { fn main() {
SimpleLogger::new().with_level(LevelFilter::Info).init().unwrap(); SimpleLogger::new()
.with_level(LevelFilter::Info)
.init()
.unwrap();
info!("CGG Item Sets"); info!("CGG Item Sets");
@ -81,9 +84,9 @@ fn main() {
.unwrap(); .unwrap();
info!("LoL numbers of champs: {}", champion.data.len()); info!("LoL numbers of champs: {}", champion.data.len());
let data_sources: [Box<dyn DataSource>; 3] = [ let data_sources: [Box<dyn DataSource>; 2] = [
Box::new(PBDataSource), Box::new(PBDataSource),
Box::new(CGGDataSource), // Box::new(CGGDataSource),
Box::new(KBDataSource::new(&client)), Box::new(KBDataSource::new(&client)),
]; ];