Commit 610428d
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: 95e5bf68981f96033774f042153dc6a0af4a5c0b1 parent 92e0118 commit 610428d
File tree
7 files changed
+938
-717
lines changed- .cargo
- .github/workflows
- hyperactor
- src/channel
- net
- scripts
7 files changed
+938
-717
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments