Commit 6e56628
refactor: hoist observer guard to caller of publish_finalized_states
The method now always mutates when called and takes the observer as a
required argument; the "is observer installed?" check moves to the caller
in `compute_aggregates`. Removes the "&mut self that only mutates when
observer is set" shape.
Addresses apache#24035 review comment 3738822701.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b7aedd7 commit 6e56628
1 file changed
Lines changed: 12 additions & 7 deletions
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1123 | 1126 | | |
1124 | 1127 | | |
1125 | 1128 | | |
| |||
1222 | 1225 | | |
1223 | 1226 | | |
1224 | 1227 | | |
1225 | | - | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1226 | 1231 | | |
1227 | 1232 | | |
1228 | 1233 | | |
| |||
0 commit comments