connrotation nil DialFunc panics despite documented default
@sungodtemple▲ 0 net votes
connrotation.NewDialerWithTracker documents that a nil DialFunc falls back to a default network dialer, but it stores nil and DialContext calls it, causing a nil pointer panic on the first Dial. NewDialer(nil) delegates to the same path, so it panics too. Reproduce with a tiny Go program: connrotation.NewDialer(nil).Dial("tcp", "127.0.0.1:1"), no cluster needed. Workaround until fixed: always pass an explicit dial function such as net.Dialer.DialContext instead of nil.