From 202dd20be0ce98a40ba861190900d0cac04ed615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Wed, 18 Dec 2024 16:42:01 +0800 Subject: [PATCH] Fix error for notification server --- notification-server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notification-server/server.go b/notification-server/server.go index c6af3f8..cf6a6fe 100644 --- a/notification-server/server.go +++ b/notification-server/server.go @@ -10,8 +10,8 @@ import ( "os" "os/signal" "path/filepath" - "strings" "strconv" + "strings" "syscall" "time" @@ -46,7 +46,7 @@ func init() { } func loadNotifConfig() { - host := os.Getenv("NOTIFICATION_SERVER_HOST") + host = os.Getenv("NOTIFICATION_SERVER_HOST") if host == "" { host = "0.0.0.0" } @@ -55,7 +55,7 @@ func loadNotifConfig() { if os.Getenv("NOTIFICATION_SERVER_PORT") != "" { i, err := strconv.Atoi(os.Getenv("NOTIFICATION_SERVER_PORT")) if err == nil { - port = i + port = uint32(i) } }