mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 21:31:30 +00:00
fix build problem
This commit is contained in:
parent
86ddfe5375
commit
1687ec85de
@ -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) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return l, nil
|
return l, nil
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user