Fix compile errors
This commit is contained in:
parent
946e3a09ca
commit
1958fd2031
|
@ -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.
|
// 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() {
|
go func() {
|
||||||
r, rtt, err := c.ExchangeRtt(msg, addr)
|
r, rtt, err := c.ExchangeRtt(msg, addr)
|
||||||
callback(msg, r, rtt, err, data)
|
callback(msg, r, rtt, err, data)
|
||||||
|
|
1
dns.go
1
dns.go
|
@ -65,7 +65,6 @@ package dns
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
5
xfr.go
5
xfr.go
|
@ -1,5 +1,10 @@
|
||||||
package dns
|
package dns
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
// XfrReceives requests an incoming Ixfr or Axfr. If the message q's question
|
// 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.
|
// 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
|
// The [AI]xfr's records are returned on the channel. Note that with an IXFR the client
|
||||||
|
|
Loading…
Reference in New Issue