chore: Deletion of useless FIXME substitutes

pull/53/head
Helzoph 2 months ago
parent 832b4b3908
commit 70fea76278

1
cache/account.go vendored

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

2
cache/game.go vendored

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

Loading…
Cancel
Save