Commit cc5813b
committed
address Copilot review on libp2p#1317
- _extract_host_port_from_sockname now takes sock_name: object rather
than Any, matching the runtime isinstance checks and avoiding an
unnecessary typing.Any dependency
- The sockname-unrecognised warning branch now explicitly restores
actual_host/actual_port from the requested host/port, so the
'falling back to requested host/port' log line is self-contained
and the intent is obvious from the code flow1 parent 623949f commit cc5813b
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| |||
0 commit comments