File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ type transport interface {
88
88
89
89
// bucket contains nodes, ordered by their last activity. the entry
90
90
// that was most recently active is the first element in entries.
91
- type bucket struct {
92
- lastLookup time.Time
93
- entries []* Node
94
- }
91
+ type bucket struct { entries []* Node }
95
92
96
93
func newTable (t transport , ourID NodeID , ourAddr * net.UDPAddr , nodeDBPath string ) * Table {
97
94
// If no node database was given, use an in-memory one
@@ -218,8 +215,6 @@ func (tab *Table) Lookup(targetID NodeID) []*Node {
218
215
asked [tab .self .ID ] = true
219
216
220
217
tab .mutex .Lock ()
221
- // update last lookup stamp (for refresh logic)
222
- tab .buckets [logdist (tab .self .sha , target )].lastLookup = time .Now ()
223
218
// generate initial result set
224
219
result := tab .closest (target , bucketSize )
225
220
tab .mutex .Unlock ()
You can’t perform that action at this time.
0 commit comments