Skip to content

Commit a649991

Browse files
authored
Merge pull request ipfs#67 from hermanjunge/master
Add queried peer ID to query event
2 parents b62d46c + e55dcbb commit a649991

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
- IPFS_REUSEPORT=false
88

99
go:
10-
- 1.7
10+
- 1.8
1111

1212
install: true
1313

routing.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo,
444444
closer := pmes.GetCloserPeers()
445445
clpeerInfos := pb.PBPeersToPeerInfos(closer)
446446

447-
// see it we got the peer here
447+
// see if we got the peer here
448448
for _, npi := range clpeerInfos {
449449
if npi.ID == id {
450450
return &dhtQueryResult{
@@ -456,6 +456,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo,
456456

457457
notif.PublishQueryEvent(parent, &notif.QueryEvent{
458458
Type: notif.PeerResponse,
459+
ID: p,
459460
Responses: clpeerInfos,
460461
})
461462

0 commit comments

Comments
 (0)