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:
parent
5b537c7b10
commit
7d98247cb0
@ -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
|
||||
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user