Merge pull request 'fix: disable cgg (panic cause of ofd impl)' (#4) from slany/CGGItemSets:fix/cgg into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
This commit is contained in:
commit
7e7bb8aaad
1 changed files with 7 additions and 4 deletions
11
src/main.rs
11
src/main.rs
|
@ -15,7 +15,7 @@ mod data_source;
|
|||
mod kb_data_source;
|
||||
mod pb_data_source;
|
||||
|
||||
use cgg_data_source::CGGDataSource;
|
||||
// use cgg_data_source::CGGDataSource;
|
||||
use data_source::DataSource;
|
||||
use kb_data_source::KBDataSource;
|
||||
use pb_data_source::PBDataSource;
|
||||
|
@ -40,7 +40,10 @@ const USER_AGENT: &str =
|
|||
const LOL_CHAMPS_DIR: &str = ".\\champs";
|
||||
|
||||
fn main() {
|
||||
SimpleLogger::new().with_level(LevelFilter::Info).init().unwrap();
|
||||
SimpleLogger::new()
|
||||
.with_level(LevelFilter::Info)
|
||||
.init()
|
||||
.unwrap();
|
||||
|
||||
info!("CGG Item Sets");
|
||||
|
||||
|
@ -81,9 +84,9 @@ fn main() {
|
|||
.unwrap();
|
||||
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(CGGDataSource),
|
||||
// Box::new(CGGDataSource),
|
||||
Box::new(KBDataSource::new(&client)),
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue