Commit 6d06d486 authored by Dmitry Vyukov's avatar Dmitry Vyukov
Browse files

net: don't allocate dialer closure if we won't use it

When we use dialMulti we also allocate dialSingle closure for no reason.

Change-Id: I074282a9d6e2c2a1063ab311a1b95e10fe65219f
Reviewed-on: https://go-review.googlesource.com/4119


Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 8ffc4500
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment