mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3: remove unused fields from 'auth'
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
d6efc0b22b
commit
9bc3c0bd05
@ -100,19 +100,11 @@ type Auth interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type auth struct {
|
type auth struct {
|
||||||
c *Client
|
|
||||||
|
|
||||||
conn *grpc.ClientConn // conn in-use
|
|
||||||
remote pb.AuthClient
|
remote pb.AuthClient
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAuth(c *Client) Auth {
|
func NewAuth(c *Client) Auth {
|
||||||
conn := c.ActiveConnection()
|
return &auth{remote: pb.NewAuthClient(c.ActiveConnection())}
|
||||||
return &auth{
|
|
||||||
conn: c.ActiveConnection(),
|
|
||||||
remote: pb.NewAuthClient(conn),
|
|
||||||
c: c,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (auth *auth) AuthEnable(ctx context.Context) (*AuthEnableResponse, error) {
|
func (auth *auth) AuthEnable(ctx context.Context) (*AuthEnableResponse, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user