From 9564dac5c3bfd616c792d2ebe7bbd6858b017b03 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Thu, 29 Oct 2020 01:08:25 +0800 Subject: [PATCH] add changelog --- actix-rt/CHANGES.md | 10 ++++++++++ actix-rt/src/lib.rs | 4 ---- actix-rt/src/runtime.rs | 5 ++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 9b5fb636..0560ad31 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -6,6 +6,16 @@ * Add `System::attach_to_tokio` method. [#173] +### Changed + +* Deprecate `Arbiter::is_running`and `Arbiter::local_join`. `Arbiter::spawn` would panic when `System` is not in scope. [#207] + +### Fixed + +* Fix work load issue by removing `PENDDING` thread local. [#207] + +[#207]: https://github.com/actix/actix-net/pull/207 + ## [1.1.1] - 2020-04-30 ### Fixed diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index d3b64187..12ad478d 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -63,7 +63,3 @@ pub mod time { pub use tokio::time::{interval, interval_at, Interval}; pub use tokio::time::{timeout, Timeout}; } - -pub mod task { - pub use tokio::task::yield_now; -} diff --git a/actix-rt/src/runtime.rs b/actix-rt/src/runtime.rs index 1e782e0b..da1f6d0d 100644 --- a/actix-rt/src/runtime.rs +++ b/actix-rt/src/runtime.rs @@ -24,7 +24,10 @@ impl Runtime { .basic_scheduler() .build()?; - Ok(Runtime { rt, local: LocalSet::new() }) + Ok(Runtime { + rt, + local: LocalSet::new(), + }) } pub(super) fn local(&self) -> &LocalSet {