changed trawling interval from 1 to 3 seconds

This commit is contained in:
Bora Alper 2017-11-05 01:51:25 +00:00
parent e9d23c3292
commit e4d7bcac2d

View File

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