Commit 1687ec85 authored by sun shengxiang's avatar sun shengxiang

fix build problem

parent 86ddfe53
...@@ -137,7 +137,7 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) { ...@@ -137,7 +137,7 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) {
countStr := os.Getenv(FDKey) countStr := os.Getenv(FDKey)
if countStr == "" { if countStr == "" {
return net.ListenTCP("tcp", tcpaddr) return net.ListenTCP("tcp", tcpaddr)
} else { }
count, err := strconv.Atoi(countStr) count, err := strconv.Atoi(countStr)
if err != nil { if err != nil {
return nil, err return nil, err
...@@ -148,5 +148,4 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) { ...@@ -148,5 +148,4 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) {
return nil, err return nil, err
} }
return l, nil return l, nil
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment