mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 10:10:40 +00:00
gofmt and golint
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
type graceConn struct {
|
||||
net.Conn
|
||||
server *Server
|
||||
m sync.Mutex
|
||||
m sync.Mutex
|
||||
closed bool
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ func (c *graceConn) Close() (err error) {
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
c.m.Lock()
|
||||
if c.closed {
|
||||
c.m.Unlock()
|
||||
|
Reference in New Issue
Block a user