Skip to content

Commit

Permalink
improve comment and var
Browse files Browse the repository at this point in the history
  • Loading branch information
eshitachandwani committed Nov 20, 2024
1 parent 36d0573 commit 5a87284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/envconfig/envconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var (
// setting the environment variable "GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST"
// to "true".
NewPickFirstEnabled = boolFromEnv("GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST", false)

//HTTPProxy is set to empty string if HTTPS_PROXY env it is not set.
HTTPProxy = stringFromEnv("HTTPS_PROXY", "")
)

Expand Down
4 changes: 2 additions & 2 deletions internal/resolver/delegatingresolver/delegatingresolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ func SetUser(addr resolver.Address, user *url.Userinfo) resolver.Address {
// GetUser returns the user info in the resolver.Address, or nil if not present.
// The returned data should not be mutated.
func GetUser(addr resolver.Address) *url.Userinfo {
s, _ := addr.Attributes.Value(userKey).(*url.Userinfo)
return s
user, _ := addr.Attributes.Value(userKey).(*url.Userinfo)
return user
}

func (r *delegatingResolver) updateState(state resolver.State) resolver.State {
Expand Down

0 comments on commit 5a87284

Please sign in to comment.