Fix scheduler definition

This commit is contained in:
Maximilian Ammann 2022-04-05 17:27:30 +02:00
parent ad620397ae
commit 054f23efda
2 changed files with 2 additions and 6 deletions

View File

@ -10,9 +10,7 @@ pub fn main() {
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
MapBuilder::from_window("A fantastic window!")
.with_schedule_method(ScheduleMethod::Tokio(TokioScheduleMethod::new(Some(
"/tmp/mapr_cache".to_string(),
))))
.with_schedule_method(ScheduleMethod::Tokio(TokioScheduleMethod::new()))
.build()
.run_sync();
}

View File

@ -11,9 +11,7 @@ pub fn mapr_apple_main() {
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
MapBuilder::from_window("A fantastic window!")
.with_schedule_method(ScheduleMethod::Tokio(TokioScheduleMethod::new(Some(
"/tmp/mapr_cache".to_string(),
))))
.with_schedule_method(ScheduleMethod::Tokio(TokioScheduleMethod::new()))
.build()
.run_sync();
}