From 4351af35f4fd11a2c452350b35e339f772f7aead Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 19 Nov 2019 01:44:26 +0100 Subject: [PATCH] Don't load geoip db in parallel --- plugins/Sidebar/SidebarPlugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index b15c9136..c77805c5 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -11,6 +11,7 @@ import urllib.parse import gevent +import util from Config import config from Plugin import PluginManager from Debug import Debug @@ -629,6 +630,7 @@ class UiWebsocketPlugin(object): loc_cache[ip] = loc return loc + @util.Noparallel() def getGeoipDb(self): db_name = 'GeoLite2-City.mmdb' @@ -658,7 +660,6 @@ class UiWebsocketPlugin(object): self.log.debug("Not showing peer locations: no GeoIP database") return False - self.log.info("Loading GeoIP database from: %s" % db_path) geodb = maxminddb.open_database(db_path) peers = list(peers.values())