build with latest coio

This commit is contained in:
Y. T. Chung
2015-10-02 02:26:22 +08:00
parent 5156fa8bee
commit 0d47ed40e6
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ fn main() {
let threads = matches.value_of("THREADS").unwrap_or("1").parse::<usize>()
.ok().expect("`threads` should be an integer");
Scheduler::with_workers(threads).run(move|| {
Scheduler::new().with_workers(threads).run(move|| {
RelayLocal::new(config).run();
}).unwrap();
}

View File

@@ -170,7 +170,7 @@ fn main() {
let threads = matches.value_of("THREADS").unwrap_or("1").parse::<usize>()
.ok().expect("`threads` should be an integer");
Scheduler::with_workers(threads).run(move|| {
Scheduler::new().with_workers(threads).run(move|| {
RelayServer::new(config).run();
}).unwrap();
}