diff options
author | 2024-05-02 14:43:00 +0200 | |
---|---|---|
committer | 2024-05-02 13:43:00 +0100 | |
commit | ebec95a52280980caa88b9c8cd92d69c1a7dc164 (patch) | |
tree | afea663a4ed5a5312755c828e104f27ec137a7d6 /internal/processing/account | |
parent | [feature] Page through accounts as moderator (#2881) (diff) | |
download | gotosocial-ebec95a52280980caa88b9c8cd92d69c1a7dc164.tar.xz |
[bugfix] Lock when checking/creating notifs to avoid race (#2890)
* [bugfix] Lock when checking/creating notifs to avoid race
* test notif spam
Diffstat (limited to 'internal/processing/account')
-rw-r--r-- | internal/processing/account/move.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/account/move.go b/internal/processing/account/move.go index 63187dfd1..21e4f887b 100644 --- a/internal/processing/account/move.go +++ b/internal/processing/account/move.go @@ -113,7 +113,7 @@ func (p *Processor) MoveSelf( // in quick succession, so get a lock on // this account. lockKey := originAcct.URI - unlock := p.state.AccountLocks.Lock(lockKey) + unlock := p.state.ProcessingLocks.Lock(lockKey) defer unlock() // Ensure we have a valid, up-to-date representation of the target account. |