mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-16 19:27:30 -06:00
[chore] Move DoOnce func wrapper to util (#2613)
This commit is contained in:
parent
6738fd5bb0
commit
7a7746701d
5 changed files with 36 additions and 16 deletions
|
|
@ -295,7 +295,7 @@ func (d *Dereferencer) enrichStatusSafely(
|
|||
// to safely defer in case of panic, while still
|
||||
// performing more granular unlocks when needed.
|
||||
unlock := d.state.FedLocks.Lock(uriStr)
|
||||
unlock = doOnce(unlock)
|
||||
unlock = util.DoOnce(unlock)
|
||||
defer unlock()
|
||||
|
||||
// Perform status enrichment with passed vars.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue