Merge pull request #7657 from gyuho/auth-cleanup

clientv3: remove unused fields from 'auth'
This commit is contained in:
Gyu-Ho Lee 2017-04-04 09:42:17 -07:00 committed by GitHub
commit d9069120bb

View File

@ -100,19 +100,11 @@ type Auth interface {
}
type auth struct {
c *Client
conn *grpc.ClientConn // conn in-use
remote pb.AuthClient
}
func NewAuth(c *Client) Auth {
conn := c.ActiveConnection()
return &auth{
conn: c.ActiveConnection(),
remote: pb.NewAuthClient(conn),
c: c,
}
return &auth{remote: pb.NewAuthClient(c.ActiveConnection())}
}
func (auth *auth) AuthEnable(ctx context.Context) (*AuthEnableResponse, error) {