Fix rule-set not closed

This commit is contained in:
世界
2025-02-01 19:42:32 +08:00
parent 27c31eac5d
commit 9b4c11ba95
2 changed files with 8 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ func NewLocalRuleSet(ctx context.Context, logger logger.Logger, options option.R
}
} else {
filePath := filemanager.BasePath(ctx, options.LocalOptions.Path)
filePath, _ = filepath.Abs(options.LocalOptions.Path)
filePath, _ = filepath.Abs(filePath)
err := ruleSet.reloadFile(filePath)
if err != nil {
return nil, err