From 9a84809984c96714790a5710bcb25b8b57c66276 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 27 Aug 2022 16:16:13 +0200 Subject: [PATCH] Rename reload_config to reload_extensions to make clear what it really does --- fieldpoc/controller.py | 2 +- fieldpoc/fieldpoc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fieldpoc/controller.py b/fieldpoc/controller.py index 594b65a..1e6b830 100644 --- a/fieldpoc/controller.py +++ b/fieldpoc/controller.py @@ -61,7 +61,7 @@ exit Disconnect elif data == "queues": self.request.sendall(("\n".join(["{} {}".format(name, queue.qsize()) for name, queue in self.fp.queues.items()]) + "\n").encode("utf-8")) elif data == "reload": - self.fp.reload_config() + self.fp.reload_extensions() elif data.startswith("claim"): data = data.split(" ") if len(data) == 3: diff --git a/fieldpoc/fieldpoc.py b/fieldpoc/fieldpoc.py index d1cdde3..3dd63e2 100644 --- a/fieldpoc/fieldpoc.py +++ b/fieldpoc/fieldpoc.py @@ -76,7 +76,7 @@ class FieldPOC: logger.info("started components") - def reload_config(self): + def reload_extensions(self): self._load_extensions() self.queue_all({"type": "sync"})