swap/src/cli/event_loop.rs:546-553 registers a swap handler and then calls redial.add_peer(peer_id) and tor_priority_tracker.mark_high_priority(peer_id). None of these are ever removed — registered_swap_handlers has no .remove, and the pre-existing TODO on line 549 already notes the redial leak.
The CLI event loop has no swap-completion signal, so nothing triggers cleanup.
swap/src/cli/event_loop.rs:546-553registers a swap handler and then callsredial.add_peer(peer_id)andtor_priority_tracker.mark_high_priority(peer_id). None of these are ever removed —registered_swap_handlershas no.remove, and the pre-existing TODO on line 549 already notes the redial leak.The CLI event loop has no swap-completion signal, so nothing triggers cleanup.