diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2025-01-10 12:49:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 12:49:32 +0100 |
| commit | bf99c233a18c3165e0d4d251b41224e5bc6eb93d (patch) | |
| tree | d32f0fd0770a049552cdd0d51e9402d594e9a35e /module.go | |
| parent | 924184f37ef0d3e244f8e8991c259affb45d0ae2 (diff) | |
Implement nested scraping (#81)
Diffstat (limited to 'module.go')
| -rw-r--r-- | module.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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()) |