From 92d7259c688d31a608a0a075d5f22cbe9bfda8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 1 Aug 2017 02:57:21 +0200 Subject: [PATCH] go-ipfs-config: Reprovider strategies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- config/init.go | 1 + config/reprovider.go | 1 + 2 files changed, 2 insertions(+) diff --git a/config/init.go b/config/init.go index aa129d97e..f31edd42b 100644 --- a/config/init.go +++ b/config/init.go @@ -72,6 +72,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { }, Reprovider: Reprovider{ Interval: "12h", + Strategy: "all", }, } diff --git a/config/reprovider.go b/config/reprovider.go index 53cf293ab..fa029c2fc 100644 --- a/config/reprovider.go +++ b/config/reprovider.go @@ -2,4 +2,5 @@ package config type Reprovider struct { Interval string // Time period to reprovide locally stored objects to the network + Strategy string // Which keys to announce }