changed trawling interval from 1 to 3 seconds
This commit is contained in:
parent
e9d23c3292
commit
e4d7bcac2d
@ -77,7 +77,7 @@ func (s *TrawlingService) Terminate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *TrawlingService) trawl() {
|
func (s *TrawlingService) trawl() {
|
||||||
for range time.Tick(1 * time.Second) {
|
for range time.Tick(3 * time.Second) {
|
||||||
s.routingTableMutex.Lock()
|
s.routingTableMutex.Lock()
|
||||||
if len(s.routingTable) == 0 {
|
if len(s.routingTable) == 0 {
|
||||||
s.bootstrap()
|
s.bootstrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user