Commit 8921a2d
authored
grpc: use pointers for load_balancing::WeakSubchannel hash/eq operations (#2439)
This is an old change that I found in my client that never got pushed
upstream, but is worth having.
Upgrading weak to owned before performing these operations is more
expensive. Just using the pointer is simpler and quicker and equally
valid.1 parent 64df1fa commit 8921a2d
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
456 | 457 | | |
457 | 458 | | |
458 | 459 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 460 | + | |
463 | 461 | | |
464 | 462 | | |
465 | 463 | | |
466 | 464 | | |
467 | 465 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
| 466 | + | |
474 | 467 | | |
475 | 468 | | |
476 | 469 | | |
| |||
0 commit comments