Fix compile errors

This commit is contained in:
Miek Gieben 2012-08-08 09:45:31 +02:00
parent 946e3a09ca
commit 1958fd2031
3 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func (c *Client) Do(msg *Msg, addr string, data interface{}, callback func(*Msg,
}
// DoRtt is equivalent to Do, except that is calls ExchangeRtt.
func (c *Client) Do(msg *Msg, addr string, data interface{}, callback func(*Msg, *Msg, rtt time.Duration, error, interface{})) {
func (c *Client) DoRtt(msg *Msg, addr string, data interface{}, callback func(*Msg, *Msg, time.Duration, error, interface{})) {
go func() {
r, rtt, err := c.ExchangeRtt(msg, addr)
callback(msg, r, rtt, err, data)

1
dns.go
View File

@ -65,7 +65,6 @@ package dns
import (
"net"
"strconv"
"time"
)
const (

5
xfr.go
View File

@ -1,5 +1,10 @@
package dns
import (
"net"
"time"
)
// XfrReceives requests an incoming Ixfr or Axfr. If the message q's question
// section has type TypeAXFR an Axfr is performed, if it is TypeIXFR it does an Ixfr.
// The [AI]xfr's records are returned on the channel. Note that with an IXFR the client