Skip to content

Commit

Permalink
Fix set port 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 a457a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 @@ -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 a457a03

Please sign in to comment.