fix: use DialContext of go-reuseport

It got skipped when go-reuseport got migrated to context
parent 460a6ff5
......@@ -193,7 +193,7 @@ func (d *tcpDialer) reuseDial(ctx context.Context, raddr ma.Multiaddr) (manet.Co
}
_ = ctx // TODO: implement DialContext in reuseport
con, err := d.rd.Dial(network, netraddr)
con, err := d.rd.DialContext(ctx, network, netraddr)
if err == nil {
logdial["reuseport"] = "success"
rpev.Done()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment