fix build error

pull/1331/head
Darien Raymond 6 years ago
parent 6c4850634b
commit 2ff93c65f3
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -33,7 +33,7 @@ func Dial(ctx context.Context, dest net.Destination) (Connection, error) {
ctx = ContextWithStreamSettings(ctx, streamSettings) ctx = ContextWithStreamSettings(ctx, streamSettings)
} }
protocol = streamSettings.ProtocolName protocol := streamSettings.ProtocolName
dialer := transportDialerCache[protocol] dialer := transportDialerCache[protocol]
if dialer == nil { if dialer == nil {
return nil, newError(protocol, " dialer not registered").AtError() return nil, newError(protocol, " dialer not registered").AtError()

Loading…
Cancel
Save