Make it compile

This commit is contained in:
Miek Gieben 2013-01-28 20:32:36 +01:00
parent 0dc922a99b
commit 23483f7959
1 changed files with 4 additions and 4 deletions

View File

@ -53,10 +53,10 @@ func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err erro
}
// ExchangeConn performs an synchronous query. It sends the message m trough the
// connection c and waits for a reply.
func (c *Client) ExchangeConn(m *Msg, c net.Conn) (r *Msg, rtt time.Duration, err error) {
w := &reply{client: c, addr: a.RemoteAddr()}
if err = w.send(m); err != nil {
// connection s and waits for a reply.
func (c *Client) ExchangeConn(m *Msg, s net.Conn) (r *Msg, rtt time.Duration, err error) {
w := &reply{client: c}
if err = w.send(m); err != nil {
return nil, 0, err
}
r, err = w.receive()