]> cat aescling's git repositories - mastodon.git/commit
Batched remove status service (#3735)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 14 Jun 2017 16:01:35 +0000 (18:01 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2017 16:01:35 +0000 (18:01 +0200)
commite17c2e5da5010beaefb46c8fffe35e87cb28f407
tree5044d517e80ea2e152621da3520992648bcca42b
parent4a618908e836ecb94f70e99f2198ee7b3ba3b2ec
Batched remove status service (#3735)

* Make Pubsubhubbub::DistributionWorker handle both single stream entry
arguments, as well as arrays of stream entries

* Add BatchedRemoveStatusService, make SuspendAccountService use it

* Improve method names

* Add test

* Add more tests

* Use PuSH payloads of 100 to have a clear mapping of
1000 input statuses -> 10 PuSH payloads

It was nice while it lasted
app/services/batched_remove_status_service.rb [new file with mode: 0644]
app/services/suspend_account_service.rb
app/workers/pubsubhubbub/distribution_worker.rb
spec/services/batched_remove_status_service_spec.rb [new file with mode: 0644]
spec/workers/pubsubhubbub/distribution_worker_spec.rb