mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47: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 = client.dht.NewInformationRequest(client.Action, client.Key, nodes)
|
||||||
info.ResultChanExt = resultChan
|
info.ResultChanExt = resultChan
|
||||||
client.dht.SendRequestFindNode(info)
|
|
||||||
|
switch client.Action {
|
||||||
|
case ActionFindNode:
|
||||||
|
client.dht.SendRequestFindNode(info)
|
||||||
|
case ActionFindValue:
|
||||||
|
client.dht.SendRequestFindValue(info)
|
||||||
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
select {
|
select {
|
||||||
|
|||||||
Reference in New Issue
Block a user