summaryrefslogtreecommitdiff
path: root/module.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2025-01-10 12:49:32 +0100
committerGitHub <noreply@github.com>2025-01-10 12:49:32 +0100
commitbf99c233a18c3165e0d4d251b41224e5bc6eb93d (patch)
treed32f0fd0770a049552cdd0d51e9402d594e9a35e /module.go
parent924184f37ef0d3e244f8e8991c259affb45d0ae2 (diff)
Implement nested scraping (#81)
Diffstat (limited to 'module.go')
-rw-r--r--module.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/module.go b/module.go
index 47ccd31..3d3b659 100644
--- a/module.go
+++ b/module.go
@@ -63,6 +63,9 @@ func LoadModules(cfg Config) []Module {
// load standard modules in order
for _, id := range moduleOrder {
+ if _, ok := loaded[id]; ok {
+ continue
+ }
mod := modules[id].ModuleInfo().New()
if err := json.Unmarshal(cfg, mod); err != nil {
panic("failed to decode config: " + err.Error())