Skip to content

Commit

Permalink
fix server worker name
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Nov 4, 2021
1 parent 5b537c7 commit 7d98247
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions actix-rt/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion actix-server/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion actix-server/tests/test_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 7d98247

Please sign in to comment.