m.Size isnt used

This commit is contained in:
Miek Gieben 2012-12-14 13:33:24 +01:00
parent 9977bf87c4
commit e66c2a1324
2 changed files with 0 additions and 2 deletions

View File

@ -101,7 +101,6 @@ func (w *reply) receive() (*Msg, error) {
return nil, err
}
w.rtt = time.Since(w.t)
m.Size = n
if t := m.IsTsig(); t != nil {
secret := t.Hdr.Name
if _, ok := w.client.TsigSecret[secret]; !ok {

1
msg.go
View File

@ -70,7 +70,6 @@ type MsgHdr struct {
type Msg struct {
MsgHdr
Compress bool // If true, the message will be compressed when converted to wire format.
Size int // Number of octects in the message received from the wire.
Question []Question // Holds the RR(s) of the question section.
Answer []RR // Holds the RR(s) of the answer section.
Ns []RR // Holds the RR(s) of the authority section.