mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
convert feature is already stablized
This commit is contained in:
@@ -232,7 +232,7 @@ fn main() {
|
||||
Scheduler::spawn(move|| {
|
||||
loop {
|
||||
coio::sleep(Duration::from_secs(5));
|
||||
debug!("Running coroutines: {}", Scheduler::instance().work_count());
|
||||
debug!("Running coroutines: {}", Scheduler::instance().map(|s| s.work_count()).unwrap());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@ fn main() {
|
||||
Scheduler::spawn(move|| {
|
||||
loop {
|
||||
coio::sleep(Duration::from_secs(5));
|
||||
debug!("Running coroutines: {}", Scheduler::instance().work_count());
|
||||
debug!("Running coroutines: {}", Scheduler::instance().map(|s| s.work_count()).unwrap());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#![crate_type = "lib"]
|
||||
#![crate_name = "shadowsocks"]
|
||||
|
||||
#![feature(box_syntax, libc, test, slice_patterns, lookup_host, convert)]
|
||||
#![feature(box_syntax, libc, test, slice_patterns, lookup_host)]
|
||||
|
||||
extern crate rustc_serialize as serialize;
|
||||
#[macro_use]
|
||||
|
||||
Reference in New Issue
Block a user