Skip to content

Commit 79d6d71

Browse files
committed
Fix panic in env config loader for non-string attribute types
Use SetS instead of Set to properly convert string env var values to the target type (int, bool, etc.) before assignment. Co-authored-by: Isaac
1 parent c740c04 commit 79d6d71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/env/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (le *configLoader) Configure(cfg *config.Config) error {
4343
if v == "" {
4444
continue
4545
}
46-
if err := a.Set(cfg, v); err != nil {
46+
if err := a.SetS(cfg, v); err != nil {
4747
return err
4848
}
4949
}

0 commit comments

Comments
 (0)