reflect: use builder

This commit is contained in:
2020-10-18 23:13:09 +08:00
parent f722c95432
commit f9b1a72018

View File

@@ -160,8 +160,8 @@ fn keep_runningd(keep_running_config: Arc<KeepRunningConfig>) {
}
fn block_send_notify(notify_token: &str, title: &str, fail_count: u64) {
use tokio::runtime;
match runtime::Builder::new().basic_scheduler().enable_all().build() {
use tokio::runtime::Builder;
match Builder::new().basic_scheduler().enable_all().build() {
Err(err) => error!("Prepare tokio runtime error: {}", err),
Ok(mut rt) => {
let text = format!("Check failed: {}, fail count: {}\ncheck time: {:?}", title, fail_count, Local::now());