support go 1.18

This commit is contained in:
aler9
2022-04-07 12:28:00 +02:00
committed by Alessandro Ros
parent 6c6c6c68c9
commit 9d12c345f8
15 changed files with 33 additions and 19 deletions

View File

@@ -51,7 +51,8 @@ type ServerConn struct {
func newServerConn(
s *Server,
nconn net.Conn) *ServerConn {
nconn net.Conn,
) *ServerConn {
ctx, ctxCancel := context.WithCancel(s.ctx)
conn := func() net.Conn {