1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 21:51:06 +01:00

fix server worker name

This commit is contained in:
Rob Ede 2021-11-04 23:00:43 +00:00
parent 5b537c7b10
commit 7d98247cb0
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,9 @@
## Unreleased - 2021-xx-xx
* Add `Arbiter::try_current` for situations where thread may or may not have Arbiter context. [#408]
* Start io-uring with `System::new` when feature is enabled. [#395]
[#395]: https://github.com/actix/actix-net/pull/395
[#408]: https://github.com/actix/actix-net/pull/408

View File

@ -299,7 +299,7 @@ impl ServerWorker {
// TODO: wait for server startup with sync channel
std::thread::Builder::new()
.name("eofibef".to_owned())
.name(format!("actix-server worker {}", idx))
.spawn(move || {
// forward existing actix system context
if let Some(sys) = sys {

View File

@ -312,7 +312,7 @@ async fn test_service_restart() {
h.join().unwrap().unwrap();
}
#[cfg_attr(not(target_os = "linux"), ignore)]
#[ignore] // non-deterministic on CI
#[actix_rt::test]
async fn worker_restart() {
use actix_service::{Service, ServiceFactory};