mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 00:01:11 +01:00
fix server worker name
This commit is contained in:
parent
5b537c7b10
commit
7d98247cb0
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
* Add `Arbiter::try_current` for situations where thread may or may not have Arbiter context. [#408]
|
* 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
|
[#408]: https://github.com/actix/actix-net/pull/408
|
||||||
|
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ impl ServerWorker {
|
|||||||
// TODO: wait for server startup with sync channel
|
// TODO: wait for server startup with sync channel
|
||||||
|
|
||||||
std::thread::Builder::new()
|
std::thread::Builder::new()
|
||||||
.name("eofibef".to_owned())
|
.name(format!("actix-server worker {}", idx))
|
||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
// forward existing actix system context
|
// forward existing actix system context
|
||||||
if let Some(sys) = sys {
|
if let Some(sys) = sys {
|
||||||
|
@ -312,7 +312,7 @@ async fn test_service_restart() {
|
|||||||
h.join().unwrap().unwrap();
|
h.join().unwrap().unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(target_os = "linux"), ignore)]
|
#[ignore] // non-deterministic on CI
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn worker_restart() {
|
async fn worker_restart() {
|
||||||
use actix_service::{Service, ServiceFactory};
|
use actix_service::{Service, ServiceFactory};
|
||||||
|
Loading…
Reference in New Issue
Block a user