Skip to content

Commit

Permalink
fix: change prometheus port.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGadvancer committed Dec 6, 2023
1 parent 4b00036 commit fe3b29f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/msggateway/n_ws_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package msggateway
import (
"context"
"errors"
"fmt"
"net/http"
"runtime"
"strconv"
Expand Down Expand Up @@ -383,9 +382,11 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
}
maxProcs := runtime.GOMAXPROCS(0)
if maxProcs == runtime.NumCPU() {
fmt.Println("进程没有受到 CPU 核心限制", maxProcs, runtime.NumCPU())
log.ZWarn(connContext, "进程没有受到 CPU 核心限制", nil,
"maxProcs", maxProcs, "sysProcs", runtime.NumCPU())
} else {
fmt.Println("进程受到 CPU 核心限制", maxProcs, runtime.NumCPU())
log.ZWarn(connContext, "进程受到 CPU 核心限制", nil,
"maxProcs", maxProcs, "sysProcs", runtime.NumCPU())
}
var (
token string
Expand Down

0 comments on commit fe3b29f

Please sign in to comment.