mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 09:41:29 +00:00
14 lines
167 B
Go
14 lines
167 B
Go
|
package grace
|
||
|
|
||
|
import "net"
|
||
|
|
||
|
type graceConn struct {
|
||
|
net.Conn
|
||
|
server *graceServer
|
||
|
}
|
||
|
|
||
|
func (c graceConn) Close() error {
|
||
|
c.server.wg.Done()
|
||
|
return c.Conn.Close()
|
||
|
}
|