1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00
This commit is contained in:
开发者小蓝 2019-07-05 18:16:08 +08:00 committed by GitHub
parent d5d510f7d6
commit a5cdf8ffc7
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(time.Now().UnixNano())
Hostname = Hostname = strconv.Itoa(int(time.Now().UnixNano()))
}
}
addFlag(flag.CommandLine)