permanent duration comment fix (#150)

This commit is contained in:
Aleksei Gurianov
2018-07-09 16:33:57 -05:00
committed by Umputun
parent 2c570c2530
commit e17ac360ff
+1 -1
View File
@@ -168,7 +168,7 @@ func (b *BoltDB) SetBlock(siteID string, userID string, status bool, ttl time.Du
bucket := tx.Bucket([]byte(blocksBucketName))
switch status {
case true:
val := time.Now().AddDate(100, 0, 0).Format(tsNano) // permanent is 50year
val := time.Now().AddDate(100, 0, 0).Format(tsNano) // permanent is 100 year
if ttl > 0 {
val = time.Now().Add(ttl).Format(tsNano)
}