mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
Fix in sendInfoRequest
This commit is contained in:
@@ -177,7 +177,13 @@ func (client *SearchClient) sendInfoRequest(nodes []*Node, resultChan chan *Node
|
||||
|
||||
info = client.dht.NewInformationRequest(client.Action, client.Key, nodes)
|
||||
info.ResultChanExt = resultChan
|
||||
client.dht.SendRequestFindNode(info)
|
||||
|
||||
switch client.Action {
|
||||
case ActionFindNode:
|
||||
client.dht.SendRequestFindNode(info)
|
||||
case ActionFindValue:
|
||||
client.dht.SendRequestFindValue(info)
|
||||
}
|
||||
|
||||
go func() {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user