Fix review comments

This commit is contained in:
Andrey Meshkov
2018-11-06 01:14:28 +03:00
parent 2e879896ff
commit cc40826299
3 changed files with 9 additions and 5 deletions

View File

@@ -72,8 +72,7 @@ func CreateResolver(bootstrap string) *net.Resolver {
PreferGo: true,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
var d net.Dialer
conn, err := d.DialContext(ctx, network, bootstrap)
return conn, err
return d.DialContext(ctx, network, bootstrap)
},
}
}