mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Fix typo in variable of remote
Fix typo in variable of remote_runtime.go
This commit is contained in:
parent
84844bb6d6
commit
0c548ea482
@ -38,20 +38,20 @@ type RemoteRuntimeService struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewRemoteRuntimeService creates a new internalapi.RuntimeService.
|
// NewRemoteRuntimeService creates a new internalapi.RuntimeService.
|
||||||
func NewRemoteRuntimeService(endpoint string, connectionTimout time.Duration) (internalapi.RuntimeService, error) {
|
func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration) (internalapi.RuntimeService, error) {
|
||||||
glog.Infof("Connecting to runtime service %s", endpoint)
|
glog.Infof("Connecting to runtime service %s", endpoint)
|
||||||
addr, dailer, err := util.GetAddressAndDialer(endpoint)
|
addr, dailer, err := util.GetAddressAndDialer(endpoint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
conn, err := grpc.Dial(addr, grpc.WithInsecure(), grpc.WithTimeout(connectionTimout), grpc.WithDialer(dailer))
|
conn, err := grpc.Dial(addr, grpc.WithInsecure(), grpc.WithTimeout(connectionTimeout), grpc.WithDialer(dailer))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Connect remote runtime %s failed: %v", addr, err)
|
glog.Errorf("Connect remote runtime %s failed: %v", addr, err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return &RemoteRuntimeService{
|
return &RemoteRuntimeService{
|
||||||
timeout: connectionTimout,
|
timeout: connectionTimeout,
|
||||||
runtimeClient: runtimeapi.NewRuntimeServiceClient(conn),
|
runtimeClient: runtimeapi.NewRuntimeServiceClient(conn),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user