From 9a49f4b37ed4a1f62a3d7d0be66f0ab301091bbf Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 4 Nov 2018 16:12:16 +1100 Subject: [PATCH] Add establish outgoing connection expvar --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index f1cb3635..036154ab 100644 --- a/client.go +++ b/client.go @@ -624,6 +624,7 @@ func (cl *Client) establishOutgoingConnEx(t *Torrent, addr string, ctx context.C // Returns nil connection and nil error if no connection could be established // for valid reasons. func (cl *Client) establishOutgoingConn(t *Torrent, addr string) (c *connection, err error) { + torrent.Add("establish outgoing connection", 1) ctx, cancel := context.WithTimeout(context.Background(), func() time.Duration { cl.rLock() defer cl.rUnlock() -- 2.48.1