From 5225a4e4bcc54aa9f42d7c53bf5d5c66491ac75c Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 10 Jun 2016 20:40:46 -0700 Subject: [PATCH] clientv3: fix client for grpc change Fix https://github.com/coreos/etcd/issues/5638. --- clientv3/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clientv3/client.go b/clientv3/client.go index 06caf2204..7a8fe28b7 100644 --- a/clientv3/client.go +++ b/clientv3/client.go @@ -48,7 +48,7 @@ type Client struct { conn *grpc.ClientConn cfg Config - creds *credentials.TransportAuthenticator + creds *credentials.TransportCredentials ctx context.Context cancel context.CancelFunc @@ -110,7 +110,7 @@ func (cred authTokenCredential) GetRequestMetadata(ctx context.Context, s ...str }, nil } -func (c *Client) dialTarget(endpoint string) (proto string, host string, creds *credentials.TransportAuthenticator) { +func (c *Client) dialTarget(endpoint string) (proto string, host string, creds *credentials.TransportCredentials) { proto = "tcp" host = endpoint creds = c.creds @@ -220,7 +220,7 @@ func newClient(cfg *Config) (*Client, error) { if cfg == nil { cfg = &Config{} } - var creds *credentials.TransportAuthenticator + var creds *credentials.TransportCredentials if cfg.TLS != nil { c := credentials.NewTLS(cfg.TLS) creds = &c