Skip to content

Commit 610428d

Browse files
mariusaemeta-codesync[bot]
authored andcommitted
refactor channel::net client loop (#1823)
Summary: Pull Request resolved: #1823 First, we break down the client loop into several functions, breaking up its monolithic nature. Second, instead of relying on custom rendering of loop states, we formalize this into a span, which efficiently pulls out the (structured) fields as required. This means we don't pay a formatting/string construction overhead on each iteration, and also make available the underlying fields in our structured logs. This is just the first salvo in improving how the `net` module is factored. ghstack-source-id: 322824631 exported-using-ghexport Reviewed By: shayne-fletcher Differential Revision: D86783166 fbshipit-source-id: 95e5bf68981f96033774f042153dc6a0af4a5c0b
1 parent 92e0118 commit 610428d

File tree

7 files changed

+938
-717
lines changed

7 files changed

+938
-717
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build]
2+
rustflags = [
3+
"--cfg",
4+
"tracing_unstable",
5+
]

.github/workflows/doc_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# Set environment variables for CUDA build
4545
export USE_CUDA=1
4646
export USE_TENSOR_ENGINE=1
47-
export RUSTFLAGS="-Zthreads=16"
47+
export RUSTFLAGS="-Zthreads=16 ${RUSTFLAGS:-}"
4848
export _GLIBCXX_USE_CXX11_ABI=1
4949
export CUDA_LIB_DIR=/usr/lib64
5050

hyperactor/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ tokio-util = { version = "0.7.15", features = ["full"] }
8383
tracing = { version = "0.1.41", features = ["attributes", "valuable"] }
8484
unicode-ident = "1.0.12"
8585
uuid = { version = "1.17", features = ["rng-getrandom", "serde", "v4", "v5", "v6", "v7", "v8"] }
86+
valuable = { version = "0.1", features = ["derive"] }
8687

8788
[dev-dependencies]
8889
buck-resources = "1"

0 commit comments

Comments
 (0)