From 8a3c8f7530932d1d3081c254f51a1498fa28a769 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet <juan@benet.ai> Date: Fri, 23 Jan 2015 04:36:32 -0800 Subject: [PATCH] reprovide: wait a minute before reproviding Many times, a node will start up only to shut down immediately. In these cases, reproviding is costly to both the node, and the rest of the network. Also note: the probability of a node being up another minute increases with uptime. TODO: maybe this should be 5 * time.Minute --- indirect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indirect.go b/indirect.go index 9e67bc2..09decbb 100644 --- a/indirect.go +++ b/indirect.go @@ -32,7 +32,7 @@ func loadIndirPin(d ds.Datastore, k ds.Key) (*indirectPin, error) { keys = append(keys, k) refcnt[k] = v } - log.Debugf("indirPin keys: %#v", keys) + // log.Debugf("indirPin keys: %#v", keys) return &indirectPin{blockset: set.SimpleSetFromKeys(keys), refCounts: refcnt}, nil } -- GitLab