From e4d7bcac2de56f123420b5506c254c014f2e49a1 Mon Sep 17 00:00:00 2001 From: Bora Alper Date: Sun, 5 Nov 2017 01:51:25 +0000 Subject: [PATCH] changed trawling interval from 1 to 3 seconds --- magneticod/dht/mainline/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magneticod/dht/mainline/service.go b/magneticod/dht/mainline/service.go index 660a617..c5c8c0a 100644 --- a/magneticod/dht/mainline/service.go +++ b/magneticod/dht/mainline/service.go @@ -77,7 +77,7 @@ func (s *TrawlingService) Terminate() { } func (s *TrawlingService) trawl() { - for range time.Tick(1 * time.Second) { + for range time.Tick(3 * time.Second) { s.routingTableMutex.Lock() if len(s.routingTable) == 0 { s.bootstrap()