You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is ok according to the scoping rules in Go, the d in the scope of the if shadows another declaration in the outer scope. If you feel strongly that this should be changed, please consider deadline.
davecheney
changed the title
proposal net/dial.go local variable d conflicted with receiver d
net/dial.go local variable d conflicted with receiver dJul 23, 2020
Does this issue reproduce with the latest release?
Yes
What did you do?
change
d, ok := ctx.Deadline()
todl, ok := ctx.Deadline()
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: