Commit 25c2d4d
authored
refactor: Prefer EndpointAddr::from_parts over EndpointAddr { ... } (#3662)
## Description
This would make the diff smaller if we decide to go with generic
endpoint ids. See #3653 . And I
also think it is nicer in any case.
## Breaking Changes
None
## Notes & open questions
<!-- Any notes, remarks or open questions you have to make about the PR.
-->
## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
- [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
- [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
- [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
- [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
- [ ] [`sendme`](https://github.com/n0-computer/sendme)1 parent 280cfc6 commit 25c2d4d
File tree
4 files changed
+36
-65
lines changed- iroh/src
- discovery
- magicsock/endpoint_map
4 files changed
+36
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
918 | 916 | | |
919 | 917 | | |
920 | 918 | | |
| |||
1059 | 1057 | | |
1060 | 1058 | | |
1061 | 1059 | | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
| 1060 | + | |
1066 | 1061 | | |
1067 | 1062 | | |
1068 | 1063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
257 | 255 | | |
258 | 256 | | |
259 | 257 | | |
| |||
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2651 | 2651 | | |
2652 | 2652 | | |
2653 | 2653 | | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
2658 | 2658 | | |
2659 | 2659 | | |
2660 | 2660 | | |
| |||
3216 | 3216 | | |
3217 | 3217 | | |
3218 | 3218 | | |
3219 | | - | |
3220 | | - | |
3221 | | - | |
3222 | | - | |
3223 | | - | |
3224 | | - | |
| 3219 | + | |
| 3220 | + | |
3225 | 3221 | | |
3226 | 3222 | | |
3227 | 3223 | | |
| |||
3292 | 3288 | | |
3293 | 3289 | | |
3294 | 3290 | | |
3295 | | - | |
3296 | | - | |
3297 | | - | |
3298 | | - | |
| 3291 | + | |
3299 | 3292 | | |
3300 | 3293 | | |
3301 | 3294 | | |
| |||
3332 | 3325 | | |
3333 | 3326 | | |
3334 | 3327 | | |
3335 | | - | |
3336 | | - | |
| 3328 | + | |
3337 | 3329 | | |
3338 | | - | |
3339 | | - | |
3340 | | - | |
3341 | | - | |
| 3330 | + | |
3342 | 3331 | | |
3343 | 3332 | | |
3344 | 3333 | | |
| |||
3393 | 3382 | | |
3394 | 3383 | | |
3395 | 3384 | | |
3396 | | - | |
3397 | | - | |
3398 | | - | |
3399 | | - | |
3400 | | - | |
3401 | | - | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
3402 | 3389 | | |
3403 | 3390 | | |
3404 | 3391 | | |
3405 | 3392 | | |
3406 | 3393 | | |
3407 | 3394 | | |
3408 | 3395 | | |
3409 | | - | |
3410 | | - | |
3411 | | - | |
3412 | | - | |
3413 | | - | |
3414 | | - | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
3415 | 3400 | | |
3416 | 3401 | | |
3417 | 3402 | | |
3418 | 3403 | | |
3419 | 3404 | | |
3420 | 3405 | | |
3421 | 3406 | | |
3422 | | - | |
3423 | | - | |
3424 | | - | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
3425 | 3410 | | |
3426 | 3411 | | |
3427 | | - | |
3428 | | - | |
3429 | | - | |
3430 | | - | |
| 3412 | + | |
| 3413 | + | |
3431 | 3414 | | |
3432 | 3415 | | |
3433 | 3416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
| 1235 | + | |
1239 | 1236 | | |
1240 | 1237 | | |
1241 | 1238 | | |
| |||
0 commit comments