gotosocial/internal/federation/federatingdb
kim c9c0773f2c
[performance] update remaining worker pools to use queues (#2865)
* start replacing client + federator + media workers with new worker + queue types

* refactor federatingDB.Delete(), drop queued messages when deleting account / status

* move all queue purging to the processor workers

* undo toolchain updates

* code comments, ensure dereferencer worker pool gets started

* update gruf libraries in readme

* start the job scheduler separately to the worker pools

* reshuffle ordering or server.go + remove duplicate worker start / stop

* update go-list version

* fix vendoring

* move queue invalidation to before wipeing / deletion, to ensure queued work not dropped

* add logging to worker processing functions in testrig, don't start workers in unexpected places

* update go-structr to add (+then rely on) QueueCtx{} type

* ensure more worker pools get started properly in tests

* fix remaining broken tests relying on worker queue logic

* fix account test suite queue popping logic, ensure noop workers do not pull from queue

* move back accidentally shuffled account deletion order

* ensure error (non nil!!) gets passed in refactored federatingDB{}.Delete()

* silently drop deletes from accounts not permitted to

* don't warn log on forwarded deletes

* make if else clauses easier to parse

* use getFederatorMsg()

* improved code comment

* improved code comment re: requesting account delete checks

* remove boolean result from worker start / stop since false = already running or already stopped

* remove optional passed-in http.client

* remove worker starting from the admin CLI commands (we don't need to handle side-effects)

* update prune cli to start scheduler but not all of the workers

* fix rebase issues

* remove redundant return statements

* i'm sorry sir linter
2024-04-26 13:50:46 +01:00
..
accept.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
announce.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
announce_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
create.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
create_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
db.go [feature] Process incoming Move activity (#2724) 2024-03-12 14:34:08 +00:00
delete.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
exists.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
federatingdb_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
followers.go [feature] add paging to AP following / followers endpoints (#2198) 2023-09-20 16:49:46 +01:00
followers_test.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
following.go [feature] add paging to AP following / followers endpoints (#2198) 2023-09-20 16:49:46 +01:00
following_test.go [bugfix] Sort follows chronologically (#2801) 2024-04-03 14:06:39 +01:00
get.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
inbox.go [feature] add paging to account follows, followers and follow requests endpoints (#2186) 2023-09-12 14:00:35 +01:00
inbox_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
liked.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
lock.go [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
move.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
move_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
outbox.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
owns.go [bugfix] Add proper constraints on status faves, dedupe (#1674) 2023-04-05 20:10:05 +02:00
reject.go [chore] refactor extractFromCtx a bit (#2646) 2024-02-17 15:20:39 +01:00
reject_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
undo.go [chore] refactor extractFromCtx a bit (#2646) 2024-02-17 15:20:39 +01:00
update.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
util.go [chore] refactor extractFromCtx a bit (#2646) 2024-02-17 15:20:39 +01:00