Skip to content

Commit

Permalink
Fix error for notification server
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Dec 18, 2024
1 parent 3fcbc9d commit 202dd20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notification-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"os"
"os/signal"
"path/filepath"
"strings"
"strconv"
"strings"
"syscall"
"time"

Expand Down Expand Up @@ -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"
}
Expand All @@ -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)
}
}

Expand Down

0 comments on commit 202dd20

Please sign in to comment.