From c7ddb8559b2756773adf2d749b5f22bdb73a9bab Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 13 Nov 2019 13:44:00 -0500 Subject: [PATCH] Change MaxRecordAge from const to var This change is to make MaxRecordAge configurable from outside the package so users can set a custom record expiration in their projects. --- records.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/records.go b/records.go index 5f641b056..0c3902922 100644 --- a/records.go +++ b/records.go @@ -17,7 +17,7 @@ import ( // For example, a record may contain an ipns entry with an EOL saying its valid // until the year 2020 (a great time in the future). For that record to stick around // it must be rebroadcasted more frequently than once every 'MaxRecordAge' -const MaxRecordAge = time.Hour * 36 +var MaxRecordAge = time.Hour * 36 type pubkrs struct { pubk ci.PubKey