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()