Skip to content

Commit

Permalink
Extend time of observation by the factor of ActivationThresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubuxu committed Apr 24, 2017
1 parent 0dee2f4 commit 2e966e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/protocol/identify/obsaddr.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (oa *ObservedAddr) TryActivate(ttl time.Duration) bool {
// cleanup SeenBy set
now := time.Now()
for k, t := range oa.SeenBy {
if now.Sub(t) > ttl {
if now.Sub(t) > ttl*ActivationThresh {
delete(oa.SeenBy, k)
}
}
Expand Down

0 comments on commit 2e966e2

Please sign in to comment.