Chore: code style

This commit is contained in:
yaling888
2022-06-15 04:29:19 +08:00
parent 0002064c07
commit f750bc96cb
21 changed files with 135 additions and 157 deletions

View File

@ -15,6 +15,7 @@ func tcpKeepAlive(c net.Conn) {
if tcp, ok := c.(*net.TCPConn); ok {
_ = tcp.SetKeepAlive(true)
_ = tcp.SetKeepAlivePeriod(30 * time.Second)
_ = tcp.SetLinger(0)
}
}