From 3546dd14d0e1f1f9dd2a8d0e9a9c3c2ef871be8f Mon Sep 17 00:00:00 2001 From: Draper <27962761+Drapersniper@users.noreply.github.com> Date: Thu, 9 Jan 2020 16:13:32 +0000 Subject: [PATCH] change executor to 1 (#3299) * Limit Playlists Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com> * 1 Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com> --- redbot/cogs/audio/databases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/audio/databases.py b/redbot/cogs/audio/databases.py index 6db74da75..6951a91b7 100644 --- a/redbot/cogs/audio/databases.py +++ b/redbot/cogs/audio/databases.py @@ -141,7 +141,7 @@ class CacheInterface: maxage = datetime.datetime.now(tz=datetime.timezone.utc) - datetime.timedelta(days=max_age) maxage_int = int(time.mktime(maxage.timetuple())) values = {"maxage": maxage_int} - with concurrent.futures.ThreadPoolExecutor(max_workers=3) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=1) as executor: executor.submit(self.database.execute, LAVALINK_DELETE_OLD_ENTRIES, values) executor.submit(self.database.execute, YOUTUBE_DELETE_OLD_ENTRIES, values) executor.submit(self.database.execute, SPOTIFY_DELETE_OLD_ENTRIES, values)