From ac9d9193e2f4277190c1caa4302e6e62ae2d2e90 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Tue, 7 Feb 2023 20:31:10 +0100 Subject: [PATCH] fixup! Do not set up filesystem on every call --- apps/files/lib/BackgroundJob/FileChunkCleanupJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/lib/BackgroundJob/FileChunkCleanupJob.php b/apps/files/lib/BackgroundJob/FileChunkCleanupJob.php index aa62d4eaf7c89..1c1f6f3bc99f2 100644 --- a/apps/files/lib/BackgroundJob/FileChunkCleanupJob.php +++ b/apps/files/lib/BackgroundJob/FileChunkCleanupJob.php @@ -50,7 +50,7 @@ public function __construct(IUserManager $userManager, IRootFolder $rootFolder, /** * This job cleans up all backups except the latest 3 from the updaters backup directory */ - public function run($argument) { + public function run($argument): void { $this->userManager->callForSeenUsers(function (IUser $user): void { $this->logger->debug('Running chunk cleanup job for user '. $user->getUID()); $fileCache = new File();