mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
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
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user