Update config for new envconfig syntax

This commit is contained in:
2025-03-13 22:43:02 +03:00
parent afe86942b7
commit d3eb64cebb

View File

@@ -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)
}