mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 12:41:54 +03:00
Update config for new envconfig syntax
This commit is contained in:
@@ -17,7 +17,10 @@ func NewConfig(ctx context.Context) (Config, error) {
|
|||||||
envconfig.OsLookuper(),
|
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)
|
return Config{}, fmt.Errorf("process env: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user