mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
build with latest coio
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user