1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

Revert "replace env underscore to dot (#1229)" (#1235)

This reverts commit 38c9def445.
This commit is contained in:
Tony Chen
2021-07-24 00:30:58 +08:00
committed by GitHub
parent dca963a236
commit cb7fc2d72a
+1 -6
View File
@@ -40,12 +40,7 @@ func (e *env) load(envStrings []string) []*config.KeyValue {
k = k[1:]
}
}
if strings.Contains(k, "_") {
kv = append(kv, &config.KeyValue{
Key: strings.Replace(k, "_", ".", -1),
Value: []byte(v),
})
}
kv = append(kv, &config.KeyValue{
Key: k,
Value: []byte(v),