diff options
| author | Paul Buetow <paul@buetow.org> | 2023-07-02 20:10:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-07-02 20:10:38 +0300 |
| commit | 9e099d15bd31f80751b9b2ac38c31bf130528329 (patch) | |
| tree | 118d42839d53a237ea64658229ab9c9762c4f35a /internal/run.go | |
| parent | 5978480b49c152e458055bb3a6b1b4ba9afa54e9 (diff) | |
refactor config to use functional options pattern
Diffstat (limited to 'internal/run.go')
| -rw-r--r-- | internal/run.go | 2 |
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 } |
