mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix: err is shadowed in server main function
Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
This commit is contained in:
parent
c06e1dbaf7
commit
8ce0f64ad0
@ -223,8 +223,8 @@ func main() {
|
||||
if profPort != "" {
|
||||
go func() {
|
||||
http.HandleFunc(log.SetLogLevelPath, log.SetLogLevel)
|
||||
err = http.ListenAndServe(fmt.Sprintf(":%v", profPort), nil)
|
||||
if err != nil {
|
||||
e := http.ListenAndServe(fmt.Sprintf(":%v", profPort), nil)
|
||||
if e != nil {
|
||||
daemonize.SignalOutcome(fmt.Errorf("cannot listen pprof %v err %v", profPort, err))
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user