Skip to content

Commit

Permalink
changes as per review
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Apr 2, 2020
1 parent 6623e4d commit 9c3dce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ func testFindPeerQuery(t *testing.T,
}

// give some time for things to settle down
time.Sleep(2 * time.Second)
waitForWellFormedTables(t, dhts, minRTRefreshThreshold, minRTRefreshThreshold, 5*time.Second)

for _, d := range dhts {
if err := <-d.RefreshRoutingTable(); err != nil {
Expand Down
5 changes: 2 additions & 3 deletions subscriber_notifee.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,10 @@ func handlePeerProtocolsUpdatedEvent(dht *IpfsDHT, e event.EvtPeerProtocolsUpdat

if !valid {
dht.peerStoppedDHT(dht.ctx, e.Peer)
} else {
// we just might have discovered a peer that supports the DHT protocol
dht.fixLowPeers()
}

// we just might have discovered a peer that supports the DHT protocol
dht.fixLowPeers()
}

func handleLocalReachabilityChangedEvent(dht *IpfsDHT, e event.EvtLocalReachabilityChanged) {
Expand Down

0 comments on commit 9c3dce7

Please sign in to comment.