Skip to content

Commit

Permalink
chore: remove needless code (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenquan authored Mar 5, 2023
1 parent 9983e54 commit d819707
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions zrpc/internal/resolver/discovbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ func (b *etcdFlowBuilder) Build(target resolver.Target, cc resolver.ClientConn,
return r == EndpointSepChar
})

user := target.URL.User
password, _ := user.Password()
username := user.Username()
sub, err := discov.NewSubscriber(hosts, targets.GetEndpoints(target),
discov.WithSubEtcdAccount(username, password),
)
sub, err := discov.NewSubscriber(hosts, targets.GetEndpoints(target))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d819707

Please sign in to comment.