summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-07-02 20:10:38 +0300
committerPaul Buetow <paul@buetow.org>2023-07-02 20:10:38 +0300
commit9e099d15bd31f80751b9b2ac38c31bf130528329 (patch)
tree118d42839d53a237ea64658229ab9c9762c4f35a /internal/run.go
parent5978480b49c152e458055bb3a6b1b4ba9afa54e9 (diff)
refactor config to use functional options pattern
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/run.go b/internal/run.go
index 961df14..7a51f6c 100644
--- a/internal/run.go
+++ b/internal/run.go
@@ -10,7 +10,7 @@ import (
)
func Run(ctx context.Context, configFile string, loopIntervalS int64) error {
- conf, err := config.New(configFile)
+ conf, err := config.NewFromConfigFile(configFile)
if err != nil {
return err
}