Commit 37764a4
committed
smp-server: fuse RSLV handler dispatch
Four parallel branches that each (a) chose a counter and (b) built a
response carried the same shape — "incStat <X> $> response (corrId,
NoEntity, <msg>)". Compute the (counter, msg) pair in one dispatch,
then increment + respond once. The post-processing on a sum value is
now in one place; adding a new ResolveError variant means changing one
mapping line, not four.
No behavior change.1 parent c244bcd commit 37764a4
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
1499 | 1499 | | |
1500 | 1500 | | |
1501 | 1501 | | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
1508 | | - | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | 1511 | | |
| |||
0 commit comments