commit 6405e3f0de3aa9a5730b04b3a973727d2768ec41
parent afaeaefb5857bd92ce4afe75d43022c738dd75bc
Author: Matsuda Kenji <info@mtkn.jp>
Date: Fri, 29 Dec 2023 07:47:40 +0900
delete Srv from Req
Diffstat:
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/req.go b/req.go
@@ -7,7 +7,6 @@ import (
// Req represents each requests.
type Req struct {
Tag uint16
- Srv *Server
// Ifcall is incomming 9P message
Ifcall Msg
// Ofcall is response message to Ifcall.
diff --git a/server.go b/server.go
@@ -175,7 +175,6 @@ func getReq(r io.Reader, rp *ReqPool, chatty bool) *Req {
if err != nil {
// duplicate tag: cons up a fake Req
req := new(Req)
- //req.Srv = s
req.Ifcall = ifcall
req.listenErr = ErrDupTag
req.done = make(chan struct{})
@@ -184,7 +183,6 @@ func getReq(r io.Reader, rp *ReqPool, chatty bool) *Req {
}
return req
}
- //req.Srv = s
req.Tag = ifcall.GetTag()
req.Ifcall = ifcall
req.done = make(chan struct{})