gotosocial/internal/processing/workers
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
..
federate.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
fromclientapi.go [feature] Notify accounts when a status they've interacted with has been edited (#4157) 2025-05-11 13:38:13 +00:00
fromclientapi_test.go [feature] Notify accounts when a status they've interacted with has been edited (#4157) 2025-05-11 13:38:13 +00:00
fromfediapi.go [feature] Notify accounts when a status they've interacted with has been edited (#4157) 2025-05-11 13:38:13 +00:00
fromfediapi_move.go [chore] various federatingdb tweaks (#4178) 2025-05-15 09:40:48 +00:00
fromfediapi_test.go [feature] Notify accounts when a status they've interacted with has been edited (#4157) 2025-05-11 13:38:13 +00:00
surface.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
surfaceemail.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
surfacenotify.go [feature] Notify accounts when a status they've interacted with has been edited (#4157) 2025-05-11 13:38:13 +00:00
surfacenotify_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
surfacetimeline.go [bugfix] fix statuses not being notified (#4143) 2025-05-06 14:19:58 +00:00
util.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
workers.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
workers_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00