mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
ineffassign
This commit is contained in:
@@ -51,13 +51,11 @@ func (ws *Workspace) handleRequest(msg *network.Msg) {
|
||||
send := ws.remote.SendCodeResponseBody(ws.target, ws.id, req.GetRequestId(), idx, true, true, buf[:n])
|
||||
ws.sendBytes += send
|
||||
ws.sendPacket++
|
||||
idx++
|
||||
return
|
||||
}
|
||||
send := ws.remote.SendCodeResponseBody(ws.target, ws.id, req.GetRequestId(), idx, false, true, []byte(err.Error()))
|
||||
ws.sendBytes += send
|
||||
ws.sendPacket++
|
||||
idx++
|
||||
logging.Error("call request [%s] [%s] [%s] read response data: %v", ws.id, ws.name, req.GetUri(), err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user