mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-07 07:49:31 -06:00
[bugfix] Lock when checking/creating notifs to avoid race (#2890)
* [bugfix] Lock when checking/creating notifs to avoid race * test notif spam
This commit is contained in:
parent
725a21b027
commit
ebec95a522
15 changed files with 290 additions and 133 deletions
|
|
@ -52,7 +52,7 @@ func (p *Processor) AccountReject(
|
|||
// Get a lock on the account URI,
|
||||
// since we're going to be deleting
|
||||
// it and its associated user.
|
||||
unlock := p.state.AccountLocks.Lock(user.Account.URI)
|
||||
unlock := p.state.ProcessingLocks.Lock(user.Account.URI)
|
||||
defer unlock()
|
||||
|
||||
// Can't reject an account with a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue