Make it compile
This commit is contained in:
parent
0dc922a99b
commit
23483f7959
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue