mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature/performance] Store account stats in separate table (#2831)
* [feature/performance] Store account stats in separate table, get stats from remote * test account stats * add some missing increment / decrement calls * change stats function signatures * rejig logging a bit * use lock when updating stats
This commit is contained in:
@@ -50,11 +50,12 @@ type State struct {
|
||||
// functions, and by the go-fed/activity library.
|
||||
FedLocks mutexes.MutexMap
|
||||
|
||||
// ClientLocks provides access to this state's
|
||||
// mutex map of per URI client locks.
|
||||
//
|
||||
// Used during account migration actions.
|
||||
ClientLocks mutexes.MutexMap
|
||||
// AccountLocks provides access to this state's
|
||||
// mutex map of per URI locks, intended for use
|
||||
// when updating accounts, migrating, approving
|
||||
// or rejecting an account, changing stats,
|
||||
// pinned statuses, etc.
|
||||
AccountLocks mutexes.MutexMap
|
||||
|
||||
// Storage provides access to the storage driver.
|
||||
Storage *storage.Driver
|
||||
|
Reference in New Issue
Block a user