mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-21 03:36:17 +08:00
chore: Deletion of useless FIXME substitutes
This commit is contained in:
parent
832b4b3908
commit
70fea76278
1
cache/account.go
vendored
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
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…
x
Reference in New Issue
Block a user