From ff249a231522e7a43417a90d48fa6ab9320b7fdd Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:41:23 +1100 Subject: [PATCH] tidy(nodes): do not store unnecessarily store invoker --- .../app/services/object_serializer/object_serializer_disk.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/invokeai/app/services/object_serializer/object_serializer_disk.py b/invokeai/app/services/object_serializer/object_serializer_disk.py index 174ff15192..b3827e16a9 100644 --- a/invokeai/app/services/object_serializer/object_serializer_disk.py +++ b/invokeai/app/services/object_serializer/object_serializer_disk.py @@ -37,13 +37,11 @@ class ObjectSerializerDisk(ObjectSerializerBase[T]): self.__obj_class_name: Optional[str] = None def start(self, invoker: "Invoker") -> None: - self._invoker = invoker - if self._delete_on_startup: delete_all_result = self._delete_all() if delete_all_result.deleted_count > 0: freed_space_in_mb = round(delete_all_result.freed_space_bytes / 1024 / 1024, 2) - self._invoker.services.logger.info( + invoker.services.logger.info( f"Deleted {delete_all_result.deleted_count} {self._obj_class_name} files (freed {freed_space_in_mb}MB)" )