From f0ee75eb37507d2d1c173d8d8179e2aeaa7d358c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E5=8F=91=E8=80=85=E5=B0=8F=E8=93=9D?= <540590988@qq.com> Date: Fri, 5 Jul 2019 18:22:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=96=E8=BE=91=E5=99=A8=E5=87=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/conf/env/env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/conf/env/env.go b/pkg/conf/env/env.go index a5c50441b..438cb12c1 100644 --- a/pkg/conf/env/env.go +++ b/pkg/conf/env/env.go @@ -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)