1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

Merge pull request #5648 from overbool/fix/ipns-config-panic

fix(core): ipns config RecordLifetime panic
This commit is contained in:
Steven Allen
2018-10-25 17:34:23 -07:00
committed by GitHub

View File

@ -599,7 +599,7 @@ func (n *IpfsNode) setupIpnsRepublisher() error {
}
if cfg.Ipns.RecordLifetime != "" {
d, err := time.ParseDuration(cfg.Ipns.RepublishPeriod)
d, err := time.ParseDuration(cfg.Ipns.RecordLifetime)
if err != nil {
return fmt.Errorf("failure to parse config setting IPNS.RecordLifetime: %s", err)
}