mirror of
https://github.com/wlynxg/NetHive.git
synced 2025-09-26 19:11:14 +08:00
fix: 修复查询节点直接退出问题
This commit is contained in:
@@ -281,8 +281,6 @@ func (e *Engine) addConn(dst netip.Addr) (PacketChan, error) {
|
||||
e.routeTable.addr.Store(dst, peerChan)
|
||||
dev := &devWrapper{w: e.devWriter, r: peerChan}
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
peerInfo := make(chan peer.AddrInfo)
|
||||
go func() {
|
||||
e.log.Infof(ctx, "start find peer %s by DHT", id)
|
||||
|
Reference in New Issue
Block a user