feat: logic rules switch from one file to rules.d and refactoring init cli func
All checks were successful
build / build (push) Successful in 2m23s

This commit is contained in:
d3m0k1d
2026-02-23 00:26:52 +03:00
parent 9ad0a3eb12
commit d534fc79d7
3 changed files with 46 additions and 105 deletions

View File

@@ -32,7 +32,6 @@ func LoadMetricsConfig() (*Metrics, error) {
func LoadRuleConfig() ([]Rule, error) {
log := logger.New(false)
var cfg Rules
_, err := toml.DecodeFile("/etc/banforge/rules.toml", &cfg)
if err != nil {
log.Error(fmt.Sprintf("failed to decode config: %v", err))