gotosocial/internal/processing
kim 3cff4b2d7d [chore] various federatingdb tweaks (#4178)
after seeing a potential reported federating worker lockup i decided to start digging into the federatingdb code. this PR encompasses:
- removes one of our last unused interface types `federatingdb.DB{}`, replacing it with a struct type `*federatingdb.DB{}`
- in `transport.dereferenceLocal()` differentiates between an unsupported lookup type and ErrNoEntries to reduce unnecessary calls, and reduce potential lockups that may occur while trying to call our own endpoints that then call `federatingdb.Lock()`
- removes a bunch of the locks on follow state changes since the DB already synchronizes that
- removes the unnecessary `pub.Clock{}` struct field and type passed to the transport controller

frankly it would be great if we could remove the locking in `federatingdb.Lock()` and instead handle it ourselves as it gets very confusing trying to figure out what functions will have locks held. but i guess that's one for when we move further away from the go-fed/activity/pub package usage.

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4178
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-05-15 09:40:48 +00:00
..
account [bugfix] Ensure Account and TargetAccount set when doing UndoFollow (#4118) 2025-05-03 10:10:23 +00:00
admin [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
advancedmigrations [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
application [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
common [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
conversations [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
fedi [chore] Rewrite all remaining Github links 2025-04-27 13:40:22 +02:00
filters [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
interactionrequests [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
list [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
markers [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
media [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
polls [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
push [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
report [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
search [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
status [chore] Deprecate with_approval, always (client API), approvalRequired, always (fedi API) (#4173) 2025-05-13 14:48:11 +00:00
stream [chore] Deprecate with_approval, always (client API), approvalRequired, always (fedi API) (#4173) 2025-05-13 14:48:11 +00:00
tags [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
timeline [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
user [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
workers [chore] various federatingdb tweaks (#4178) 2025-05-15 09:40:48 +00:00
followrequest_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
instance.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
oauth.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
parsemention.go [bugfix] Fix no notification if mention edited into status (#4102) 2025-05-04 09:45:10 +00:00
parsemention_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
preferences.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
preferences_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
processor.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
processor_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00