Add some type hints and remove legacy code.

This commit is contained in:
Andrey Antukh 2021-02-15 21:03:24 +01:00 committed by Andrés Moya
parent 2e084cc2a6
commit 784a4f8ecd
11 changed files with 18 additions and 181 deletions

View file

@ -308,7 +308,7 @@
(if-let [[groups total] (retrieve-deleted-objects conn)]
(do
(run! (partial delete-in-bulk conn) groups)
(recur (+ n total)))
(recur (+ n ^long total)))
(do
(log/infof "gc-deleted: processed %s items" n)
{:deleted n})))))))