dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit cb7d2e14114cd0f5035efdcf129cadae104b02cc
parent 14a3d40f06524291ba85748447dc8307320b067a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 31 May 2023 04:28:01 -0700

3h

Diffstat:
Mpkg/web/handlers/api/v1/chess.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/chess.go b/pkg/web/handlers/api/v1/chess.go @@ -80,7 +80,7 @@ func NewChess(db *database.DkfDB) *Chess { time.Sleep(15 * time.Minute) c.Lock() for k, g := range c.games { - if time.Since(g.lastUpdated) > 1*time.Hour { + if time.Since(g.lastUpdated) > 3*time.Hour { delete(c.games, k) } }