mirror of
https://github.com/astaxie/beego.git
synced 2024-12-27 19:45:47 +00:00
14 lines
162 B
Go
14 lines
162 B
Go
package grace
|
|
|
|
import "net"
|
|
|
|
type graceConn struct {
|
|
net.Conn
|
|
server *Server
|
|
}
|
|
|
|
func (c graceConn) Close() error {
|
|
c.server.wg.Done()
|
|
return c.Conn.Close()
|
|
}
|