fix listener may have no mapped addr (#389)

This commit is contained in:
Sijie.Sun
2024-10-07 12:15:20 +08:00
committed by GitHub
parent 37ceb77bf6
commit d4e59ffc40
3 changed files with 15 additions and 7 deletions

View File

@@ -185,7 +185,7 @@ impl PeerManager {
) -> Self {
let my_peer_id = rand::random();
let (packet_send, packet_recv) = mpsc::channel(100);
let (packet_send, packet_recv) = mpsc::channel(128);
let peers = Arc::new(PeerMap::new(
packet_send.clone(),
global_ctx.clone(),