From c97812530fc650e87eda86275698f63c32aec4a1 Mon Sep 17 00:00:00 2001 From: emli Date: Sun, 24 Dec 2017 12:16:01 +0600 Subject: [PATCH] Increased TTL --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index 724f4a7..62368d0 100644 --- a/db/db.go +++ b/db/db.go @@ -339,7 +339,7 @@ func CheckToken(token string) (name string) { if b := tx.Bucket(tokens).Bucket([]byte(token)); b != nil { date := new(time.Time) date.UnmarshalText(b.Get([]byte("date"))) - if date.Add(time.Minute * 60).Before(time.Now()) { + if date.Add(time.Hour * 24).Before(time.Now()) { return nil } if value := b.Get([]byte("name")); value != nil {