🎨 Made manager attributes more flexible

Changed run_after, retryable_on and continue_on to be type Container.
We don't need them to be sets.

The performance gain of sets over small tuples is nonexistant
for in checks and the  syntax is more verbose.
This commit is contained in:
GeoffreyCoulaud
2023-06-10 12:03:16 +02:00
parent c9a96f5eec
commit e7fd01f509
8 changed files with 14 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ from src.store.managers.steam_api_manager import SteamAPIManager
class FileManager(AsyncManager):
"""Manager in charge of saving a game to a file"""
run_after = set((SteamAPIManager,))
run_after = (SteamAPIManager,)
def manager_logic(self, game: Game, _additional_data: dict) -> None:
game.save()