delete extra stuff, formatting, removed crawl mode

This commit is contained in:
Alex Grintsvayg 2017-08-16 11:56:35 -04:00
parent 1f26aeeb5c
commit 1ee831dbf2
9 changed files with 59 additions and 293 deletions

View file

@ -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()
}