From d3eb64cebb5964c00b76bfa452864763b69dea92 Mon Sep 17 00:00:00 2001 From: derfenix Date: Thu, 13 Mar 2025 22:43:02 +0300 Subject: [PATCH] Update config for new envconfig syntax --- config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index a4be3e0..99e49b4 100644 --- a/config/config.go +++ b/config/config.go @@ -17,7 +17,10 @@ func NewConfig(ctx context.Context) (Config, error) { envconfig.OsLookuper(), ) - if err := envconfig.ProcessWith(ctx, &cfg, lookuper); err != nil { + if err := envconfig.ProcessWith(ctx, &envconfig.Config{ + Target: &cfg, + Lookuper: lookuper, + }); err != nil { return Config{}, fmt.Errorf("process env: %w", err) }