pkg/kubelet/remote: fix typo

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-02-04 15:09:31 +01:00
parent 19b12806f8
commit caa6dd2599
No known key found for this signature in database
GPG Key ID: B2BEAD150DE936B9

View File

@ -35,16 +35,16 @@ type RemoteImageService struct {
} }
// NewRemoteImageService creates a new internalapi.ImageManagerService. // NewRemoteImageService creates a new internalapi.ImageManagerService.
func NewRemoteImageService(addr string, connectionTimout time.Duration) (internalapi.ImageManagerService, error) { func NewRemoteImageService(addr string, connectionTimeout time.Duration) (internalapi.ImageManagerService, error) {
glog.V(3).Infof("Connecting to image service %s", addr) glog.V(3).Infof("Connecting to image service %s", addr)
conn, err := grpc.Dial(addr, grpc.WithInsecure(), grpc.WithTimeout(connectionTimout), grpc.WithDialer(dial)) conn, err := grpc.Dial(addr, grpc.WithInsecure(), grpc.WithTimeout(connectionTimeout), grpc.WithDialer(dial))
if err != nil { if err != nil {
glog.Errorf("Connect remote image service %s failed: %v", addr, err) glog.Errorf("Connect remote image service %s failed: %v", addr, err)
return nil, err return nil, err
} }
return &RemoteImageService{ return &RemoteImageService{
timeout: connectionTimout, timeout: connectionTimeout,
imageClient: runtimeapi.NewImageServiceClient(conn), imageClient: runtimeapi.NewImageServiceClient(conn),
}, nil }, nil
} }