From 70fea7627811cc602ef93c7849dc176dbcb52c8f Mon Sep 17 00:00:00 2001 From: Helzoph <50453568+Helzoph@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:58:41 +0800 Subject: [PATCH] chore: Deletion of useless FIXME substitutes --- cache/account.go | 1 - cache/game.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/cache/account.go b/cache/account.go index 1348d92..753f074 100644 --- a/cache/account.go +++ b/cache/account.go @@ -58,7 +58,6 @@ func UpdateAccountLastActivity(uuid []byte) bool { return err == nil } -// FIXME: This is not atomic func UpdateAccountStats(uuid []byte, battles, classicSessionsPlayed int) bool { rdb.Do("SELECT", accountsDB) err := rdb.HIncrBy(string(uuid), "battles", int64(battles)).Err() diff --git a/cache/game.go b/cache/game.go index c9729c2..47b0b1b 100644 --- a/cache/game.go +++ b/cache/game.go @@ -27,7 +27,6 @@ func FetchPlayerCount() (int, bool) { return int(cachedPlayerCount), true } -// FIXME: This is not working func FetchBattleCount() (int, bool) { rdb.Do("SELECT", accountsDB) cachedBattleCount, err := rdb.Get("battleCount").Int() @@ -44,7 +43,6 @@ func UpdateBattleCount(battleCount int) bool { return err == nil } -// FIXME: This is not working func FetchClassicSessionCount() (int, bool) { rdb.Do("SELECT", accountsDB) cachedClassicSessionCount, err := rdb.Get("classicSessionCount").Int()