1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00

fix: 编辑器出问题了

This commit is contained in:
开发者小蓝 2019-07-05 18:22:37 +08:00 committed by GitHub
parent a5cdf8ffc7
commit f0ee75eb37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
pkg/conf/env/env.go vendored
View File

@ -49,7 +49,7 @@ func init() {
if Hostname == "" {
Hostname, err = os.Hostname()
if err != nil {
Hostname = Hostname = strconv.Itoa(int(time.Now().UnixNano()))
Hostname = strconv.Itoa(int(time.Now().UnixNano()))
}
}
addFlag(flag.CommandLine)