internal/transport: remove some unused fields from structs (#2213)

- Flush and Authority are never read by the transport.
- Authority is used indirectly; move it to dialOptions.
- Delay is only set to false.
This commit is contained in:
dfawley
2018-07-13 09:56:47 -07:00
committed by GitHub
parent 984bb2c619
commit e193757038
7 changed files with 22 additions and 56 deletions

View File

@ -1047,10 +1047,7 @@ func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.
if trInfo != nil {
trInfo.tr.LazyLog(stringer("OK"), false)
}
opts := &transport.Options{
Last: true,
Delay: false,
}
opts := &transport.Options{Last: true}
if err := s.sendResponse(t, stream, reply, cp, opts, comp); err != nil {
if err == io.EOF {