update golangci-lint

This commit is contained in:
aler9
2021-05-23 18:43:40 +02:00
parent 70c0dc7800
commit 94e69f9c7f
18 changed files with 67 additions and 60 deletions

View File

@@ -69,7 +69,6 @@ type ServerConn struct {
func newServerConn(
s *Server,
nconn net.Conn) *ServerConn {
ctx, ctxCancel := context.WithCancel(s.ctx)
sc := &ServerConn{
@@ -536,9 +535,11 @@ func (sc *ServerConn) handleRequestOuter(req *base.Request) error {
return err
}
func (sc *ServerConn) handleRequestInSession(sxID string, req *base.Request, create bool,
func (sc *ServerConn) handleRequestInSession(
sxID string,
req *base.Request,
create bool,
) (*ServerSession, *base.Response, error) {
// if the session is already linked to this conn, communicate directly with it
if sxID != "" {
if ss, ok := sc.sessions[sxID]; ok {