delete extra stuff, formatting, removed crawl mode
This commit is contained in:
parent
1f26aeeb5c
commit
1ee831dbf2
9 changed files with 59 additions and 293 deletions
|
@ -2,7 +2,7 @@ package dht
|
|||
|
||||
import (
|
||||
"container/heap"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"strings"
|
||||
"sync"
|
||||
|
@ -521,12 +521,6 @@ func (rt *routingTable) Fresh() {
|
|||
}
|
||||
}
|
||||
|
||||
if rt.dht.IsCrawlMode() {
|
||||
for e := range rt.clearQueue.Iter() {
|
||||
rt.Remove(e.Value.(*node).id)
|
||||
}
|
||||
}
|
||||
|
||||
rt.clearQueue.Clear()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue